摘要: 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 阅读全文
posted @ 2017-06-18 06:01 Review->Improve 阅读(406) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-06-17 04:59 Review->Improve 阅读(548) 评论(0) 推荐(0)
摘要: 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. 阅读全文
posted @ 2017-06-17 04:21 Review->Improve 阅读(607) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-06-07 01:05 Review->Improve 阅读(454) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-06-07 00:43 Review->Improve 阅读(613) 评论(0) 推荐(1)
摘要: 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 阅读全文
posted @ 2017-06-06 14:03 Review->Improve 阅读(376) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-06-06 14:01 Review->Improve 阅读(2221) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-06-06 09:02 Review->Improve 阅读(1260) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-06-06 06:21 Review->Improve 阅读(502) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-06-06 03:43 Review->Improve 阅读(664) 评论(0) 推荐(0)