摘要: 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 阅读(448) 评论(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 阅读(608) 评论(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 阅读(369) 评论(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 阅读(2191) 评论(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 阅读(1248) 评论(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 阅读(472) 评论(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 阅读(643) 评论(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 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: Write a method anagram(s,t) to decide if two strings are anagrams or not. Write a method anagram(s,t) to decide if two strings are anagrams or not. Wr 阅读全文
posted @ 2017-06-06 00:29 Review->Improve 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2017-06-05 05:35 Review->Improve 阅读(1079) 评论(0) 推荐(0) 编辑