- 博客(13)
- 资源 (18)
- 收藏
- 关注
原创 150. Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are +,-,*,/ 。Each operand may be an integer or another expression.Note:Division between two integers sh...
2019-07-30 23:10:24 125
原创 98. Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nodes with keysless thanthe node's key. The ...
2019-07-28 16:31:19 94
原创 90. Subsets II
Given a collection of integers that might contain duplicates,nums, return all possible subsets (the power set).Note:The solution set must not contain duplicate subsets.Example:Input: [1,2,2]...
2019-07-22 21:52:14 77
原创 62. Unique Paths
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bo...
2019-07-21 17:11:38 121
原创 49. Group Anagrams
Given an array of strings, group anagrams together.Example:Input: ["eat", "tea", "tan", "ate", "nat", "bat"],Output:[ ["ate","eat","tea"], ["nat","tan"], ["bat"]]Note:All inputs will...
2019-07-18 21:42:46 129
原创 48. Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:You have to rotate the imagein-place, which means you have to modify the input 2D matrix d...
2019-07-17 23:19:33 93
原创 46. Permutations
Given a collection ofdistinctintegers, return all possible permutations.Example:Input: [1,2,3]Output:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]]解题思路:思路1:可以想象到c++库...
2019-07-17 22:03:26 100
原创 39. Combination Sum
Given asetof candidate numbers (candidates)(without duplicates)and a target number (target), find all unique combinations incandidateswhere the candidate numbers sums totarget.Thesamerepeat...
2019-07-16 22:29:55 107
原创 15. 3Sum
Given an arraynumsofnintegers, are there elementsa,b,cinnumssuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set must not cont...
2019-07-10 23:03:34 79
原创 342. Power of Four
Given an integer (signed 32 bits), write a function to check whether it is a power of 4.Example 1:Input: 16Output: trueExample 2:Input: 5Output: falseFollow up: Could you solve it witho...
2019-07-08 22:27:18 120
原创 232. Implement Queue using Stacks
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front of queue. peek() -- Get the front element. em...
2019-07-08 21:02:36 184
原创 226. Invert Binary Tree
Invert a binary tree.Example:Input: 4 / \ 2 7 / \ / \1 3 6 9Output: 4 / \ 7 2 / \ / \9 6 3 1解题思路:1、递归算法:很自然就可以联想到递归算法,每递归一层,就交换一次子节点2、非递...
2019-07-07 19:50:11 108
原创 219. Contains Duplicate II
Given an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and theabsolutedifference betweeniandjis at mostk....
2019-07-07 17:22:29 111
配置文件读取demo.zip
2019-09-16
模式识别 第三版(高清版)
2018-03-06
stm32f4 标准库 flash模拟eeprom
2017-07-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人