上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2016-04-28 11:38 新一代的天皇巨星 阅读(158) 评论(0) 推荐(0)
摘要: 224. Basic Calculator Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parent 阅读全文
posted @ 2016-04-27 13:42 新一代的天皇巨星 阅读(170) 评论(0) 推荐(0)
摘要: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e 阅读全文
posted @ 2016-04-27 13:01 新一代的天皇巨星 阅读(139) 评论(0) 推荐(0)
摘要: Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed n 阅读全文
posted @ 2016-04-26 14:10 新一代的天皇巨星 阅读(149) 评论(0) 推荐(0)
摘要: Given a list of non negative integers, arrange them such that they form the largest number. Given a list of non negative integers, arrange them such t 阅读全文
posted @ 2016-04-25 13:46 新一代的天皇巨星 阅读(117) 评论(0) 推荐(0)
摘要: 141. Linked List Cycle Given a linked list, determine if it has a cycle in it. 142. Linked List Cycle II 142. Linked List Cycle II Given a linked list 阅读全文
posted @ 2016-04-25 13:04 新一代的天皇巨星 阅读(280) 评论(0) 推荐(0)
摘要: Sort a linked list in O(n log n) time using constant space complexity. Hide Tags Linked List Sort Hide Similar Problems (E) Merge Two Sorted Lists (M) 阅读全文
posted @ 2016-04-25 09:21 新一代的天皇巨星 阅读(157) 评论(0) 推荐(0)
摘要: 198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only cons 阅读全文
posted @ 2016-04-22 14:05 新一代的天皇巨星 阅读(1481) 评论(0) 推荐(0)
摘要: Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Your a 阅读全文
posted @ 2016-04-20 23:23 新一代的天皇巨星 阅读(147) 评论(0) 推荐(0)
摘要: Type will be erased by compiler. So you cannot check against the parametized check as below. Code: Compiler warning message: Output: How to get the pa 阅读全文
posted @ 2016-04-15 05:58 新一代的天皇巨星 阅读(327) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页