摘要:
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 阅读全文
摘要:
224. Basic Calculator Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parent 阅读全文
摘要:
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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) 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文