leetcode
leetcode刷题笔记
mingyangdai
这个作者很懒,什么都没留下…
展开
-
227. Basic Calculator II
Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators and empty spaces . The integer division should t原创 2017-11-21 08:52:11 · 175 阅读 · 0 评论 -
297. Serialize and Deserialize Binary Tree
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to原创 2017-10-29 17:05:20 · 168 阅读 · 0 评论 -
42. Trapping Rain Water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. For example, Given [0,1,0,2,1,0,1,3,2,1,2,1],原创 2017-11-18 15:48:25 · 128 阅读 · 0 评论 -
251. Flatten 2D Vector
Implement an iterator to flatten a 2d vector. For example, Given 2d vector = [ [1,2], [3], [4,5,6] ] By calling next repeatedly until hasNext returns false, the order o原创 2017-11-21 08:54:28 · 237 阅读 · 0 评论 -
26. Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this by modifying原创 2018-01-09 07:56:09 · 151 阅读 · 0 评论