摘要:
Problem : Implement the following operations of a queue using stacks. push(x) Push element x to the back of queue. pop() Removes the element from in f 阅读全文
摘要:
Problem : You have a list of words and a pattern, and you want to know which words in words matches the pattern. A word matches the pattern if there e 阅读全文
摘要:
Problem : Given a positive integer N, find and return the longest distance between two consecutive 1's in the binary representation of N. If there are 阅读全文