- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 java入门编程题1-50
ProgramImplement.javapackage ProgramPractice;import java.util.*;public class ProgramImplement { //problem 1:calculate rabbits # 古典问题:有一对兔子,从出生后第3个月起 # 每个月都生一对兔子,小兔子长到第三个月后 # 每个月又生一对...
2019-04-26 11:43:28
422
原创 leetcode223
223.Rectangle AreaDescription:Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top ...
2018-11-27 17:24:51
246
原创 leetcode226
226.Invert Binary TreeDescription:Invert a binary tree.Example:Input: 4 / \ 2 7 / \ / \1 3 6 9Output: 4 / \ 7 2 / ...
2018-11-21 00:40:16
161
原创 leetcode242
242.Valid AnagramDescription:Given two stringssandt, write a function to determine iftis an anagram ofs.Example 1:Input: s = "anagram", t = "naga...
2018-11-14 22:52:26
252
原创 leetcode121
121.Best Time to Buy and Sell StockDescription:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at m...
2018-11-09 20:11:16
130
原创 leetcode136
136. Single NumberDescription:Given anon-emptyarray of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should ...
2018-11-03 23:57:46
158
原创 leetcode94
94. Binary Tree Inorder TraversalDescription:Given a binary tree, return theinordertraversal of its nodes' values.Example:Input: [1,null,2,3] 1 \ 2 /...
2018-10-27 10:43:27
157
原创 leetcode50
50.Pow(x, n)Description:Implementpow(x,n), which calculatesxraised to the powern(x^n).Example 1:Input: 2.00000, 10Output: 1024.00000Example...
2018-10-18 11:33:57
139
原创 leetcode11
11.Container With Most WaterDescription:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such...
2018-10-14 23:39:32
153
原创 leetcode104
104.Maximum Depth of Binary TreeDescription:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node d...
2018-10-07 21:10:20
141
原创 leetcode100
100.Same TreeDescription:Given two binary trees, write a function to check if they are the same or not.Two binary trees are considered the same if they a...
2018-09-28 19:25:15
220
原创 leetcode12
12.Integer to RomanDescription:Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM.Symbol ValueI 1V ...
2018-09-20 00:03:58
271
原创 leetcode167
167.Two Sum II - Input array is sortedDescription:Given an array of integers that is alreadysorted in ascending order, find two numbers such that they add up to a specific tar...
2018-09-15 20:10:55
146
原创 leetcode35
35.Search Insert PositionDescription:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if i...
2018-09-15 19:30:07
450
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人