Author: ACMer
A string is called a happy prefix if is a non-empty prefix which is also a suffix (excluding itself). Given a string s. Return the longest happy prefix of …
Design a HashSet without using any built-in hash table libraries. To be specific, your design should include these functions: add(value): Insert a value into the HashSet. contains(value) : Return …
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be …
Given a string S of digits, such as S = “123456579”, we can split it into a Fibonacci-like sequence . Formally, a Fibonacci-like sequence is a list F of …
The Wirex offers normal bank (visa debit) cards in currencies of USD, EUR and GBP. The way it works is that you can send bitcoins to Wirex accounts, do …