abc_begin

导航

上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页

2018年1月4日 #

608. Two Sum - Input array is sorted【medium】

摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文

posted @ 2018-01-04 14:59 LastBattle 阅读(138) 评论(0) 推荐(0) 编辑

2017年12月31日 #

102. Linked List Cycle【medium】

摘要: Given a linked list, determine if it has a cycle in it. Given a linked list, determine if it has a cycle in it. Example Given -21->10->4->5, tail conn 阅读全文

posted @ 2017-12-31 16:24 LastBattle 阅读(115) 评论(0) 推荐(0) 编辑

3. Digit Counts【medium】

摘要: Count the number of k's between 0 and n. k can be 0 - 9. Count the number of k's between 0 and n. k can be 0 - 9. Example if n = 12, k = 1 in [0, 1, 2 阅读全文

posted @ 2017-12-31 16:18 LastBattle 阅读(104) 评论(0) 推荐(0) 编辑

380. Intersection of Two Linked Lists【medium】

摘要: Write a program to find the node at which the intersection of two singly linked lists begins. Notice If the two linked lists have no intersection at a 阅读全文

posted @ 2017-12-31 15:33 LastBattle 阅读(96) 评论(0) 推荐(0) 编辑

85. Insert Node in a Binary Search Tree【easy】

摘要: Given a binary search tree and a new tree node, insert the node into the tree. You should keep the tree still be a valid binary search tree. Notice Yo 阅读全文

posted @ 2017-12-31 15:06 LastBattle 阅读(115) 评论(0) 推荐(0) 编辑

40. Implement Queue by Two Stacks【medium】

摘要: As the title described, you should only use two stacks to implement a queue's actions. The queue should support push(element), pop() and top() where p 阅读全文

posted @ 2017-12-31 14:41 LastBattle 阅读(91) 评论(0) 推荐(0) 编辑

227. Mock Hanoi Tower by Stacks【easy】

摘要: In the classic problem of Towers of Hanoi, you have 3 towers and N disks of different sizes which can slide onto any tower. The puzzle starts with dis 阅读全文

posted @ 2017-12-31 12:03 LastBattle 阅读(244) 评论(0) 推荐(0) 编辑

170. Rotate List【medium】

摘要: Given a list, rotate the list to the right by k places, where k is non-negative. Given a list, rotate the list to the right by k places, where k is no 阅读全文

posted @ 2017-12-31 11:40 LastBattle 阅读(101) 评论(0) 推荐(0) 编辑

171. Anagrams【medium】

摘要: Given an array of strings, return all groups of strings that are anagrams. Notice All inputs will be in lower-case Given an array of strings, return a 阅读全文

posted @ 2017-12-31 10:24 LastBattle 阅读(165) 评论(0) 推荐(0) 编辑

366. Fibonacci【naive】

摘要: Find the Nth number in Fibonacci sequence. A Fibonacci sequence is defined as follow: The first two numbers are 0 and 1. The i th number is the sum of 阅读全文

posted @ 2017-12-31 10:13 LastBattle 阅读(233) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页