摘要:
Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original list 阅读全文
摘要:
Suppose we abstract our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: The director 阅读全文
摘要:
A mirror number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number is mirror. 阅读全文
摘要:
A child is running up a staircase with n steps, and can hop either 1 step, 2 steps, or 3 steps at a time. Implement a method to count how many possibl 阅读全文
摘要:
Given two rectangles, find if the given two rectangles overlap or not. Notice l1: Top Left coordinate of first rectangle.r1: Bottom Right coordinate o 阅读全文
摘要:
Given an array of strings, return all groups of strings that are anagrams. All inputs will be in lower case. What is Anagram?- Two strings are anagram 阅读全文
摘要:
There is a stone game.At the beginning of the game the player picks n piles of stones in a circle. The goal is to merge the stones in one pile observi 阅读全文
摘要:
There is a stone game.At the beginning of the game the player picks n piles of stones in a line. The goal is to merge the stones in one pile observing 阅读全文
摘要:
Given an array of n distinct non-empty strings, you need to generate minimal possible abbreviations for every word following rules below. Begin with t 阅读全文
摘要:
Given a non-empty string word and an abbreviation abbr, return whether the string matches with the given abbreviation. A string such as "word" contain 阅读全文