摘要: 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 阅读(538) 评论(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 阅读(598) 评论(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 阅读(449) 评论(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 阅读(609) 评论(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 阅读(370) 评论(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 阅读(2195) 评论(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 阅读(1250) 评论(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 阅读(484) 评论(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 阅读(647) 评论(0) 推荐(0) 编辑
摘要: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the 阅读全文
posted @ 2017-06-06 01:50 Review->Improve 阅读(1070) 评论(0) 推荐(0) 编辑