LeetCode
Precision and grace.
「已注销」
长路漫漫是如何走过 宁愿让乐极忘形的我
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode #18(#191、#196、#197)
2020.4.20191. Number of 1 Bits196. Delete Duplicate Emails197. Rising Temperature191. Number of 1 BitsWrite a function that takes an unsigned integer and return the number of ‘1’ bits it has (also ...原创 2020-04-20 09:34:21 · 346 阅读 · 0 评论 -
LeetCode #17(#183、#189、#190)
2020.4.19183. Customers Who Never Order189. Rotate Array190. Reverse Bits183. Customers Who Never OrderSQL SchemaCreate table If Not Exists Customers (Id int, Name varchar(255))Create table If N...原创 2020-04-19 08:27:31 · 239 阅读 · 0 评论 -
LeetCode #16 (#176、#181、#182)
2020.4.18176. Second Highest Salary181. Employees Earning More Than Their Managers182. Duplicate Emails176. Second Highest SalarySQL SchemaCreate table If Not Exists Employee (Id int, Salary int)...原创 2020-04-18 13:15:25 · 347 阅读 · 0 评论 -
LeetCode #15 (#171、#172、#175)
2020.4.17172. Factorial Trailing Zeroes171. Excel Sheet Column Number175. Combine Two Tables172. Factorial Trailing ZeroesGiven an integer n, return the number of trailing zeroes in n!.Example 1:...原创 2020-04-17 08:04:26 · 305 阅读 · 0 评论 -
LeetCode #14 (#167、#168、#169)
2020.4.15167. Two Sum II - Input array is sorted168. Excel Sheet Column Title169. Majority Element167. Two Sum II - Input array is sortedGiven an array of integers that is already *sorted in ascend...原创 2020-04-15 15:19:47 · 186 阅读 · 0 评论 -
LeetCode #13(#141、#155、#160)
2020.4.14141. Linked List Cycle155. Min Stack160. Intersection of Two Linked Lists141. Linked List CycleGiven a linked list, determine if it has a cycle in it.To represent a cycle in the given lin...原创 2020-04-14 08:09:13 · 157 阅读 · 0 评论 -
LeetCode #12 (#122、#125、#136)
2020.4.12122. Best Time to Buy and Sell Stock II125. Valid Palindrome136. Single Number122. Best Time to Buy and Sell Stock IISay you have an array prices for which the ith element is the price of ...原创 2020-04-12 08:49:53 · 399 阅读 · 0 评论 -
#LeetCode #11(#118、#119、#121)
2020.4.11118. Pascal's Triangle119. Pascal's Triangle II121. Best Time to Buy and Sell Stock118. Pascal’s TriangleGiven a non-negative integer numRows, generate the first numRows of Pascal’s triang...原创 2020-04-11 09:07:50 · 184 阅读 · 0 评论 -
LeetCode #10(#110、#111、#112)
2020.4.10110. Balanced Binary Tree111. Minimum Depth of Binary Tree112. Path Sum110. Balanced Binary TreeGiven a binary tree, determine if it is height-balanced.For this problem, a height-balanced...原创 2020-04-10 08:44:55 · 180 阅读 · 0 评论 -
LeetCode #9 (#104、#107、#108)
2020.4.9104. Maximum Depth of Binary Tree107. Binary Tree Level Order Traversal II108. Convert Sorted Array to Binary Search Tree104. Maximum Depth of Binary TreeGiven a binary tree, find its maxim...原创 2020-04-09 07:59:55 · 146 阅读 · 0 评论 -
LeetCode #8 (#88、#100、#101)
2020.4.888. Merge Sorted Array100. Same Tree101. Symmetric Tree88. Merge Sorted ArrayGiven two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:The number o...原创 2020-04-08 13:11:29 · 169 阅读 · 0 评论 -
LeetCode #7(#69、#70、#83)
2020.4.769. Sqrt(x)70. Climbing Stairs83. Remove Duplicates from Sorted List69. Sqrt(x)Implement int sqrt(int x).Compute and return the square root of x, where x is guaranteed to be a non-negative...原创 2020-04-07 08:03:59 · 189 阅读 · 0 评论 -
LeetCode #6 (#58, #66, #67)
2020.4.658. Length of Last Word66. Plus One67. Add Binary58. Length of Last WordGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last wor...原创 2020-04-06 08:43:11 · 214 阅读 · 0 评论 -
LeetCode #5 (#35, #38, #53)
2020.4.5)35. Search Insert Position38. Count and Say53. Maximum Subarray35. Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return th...原创 2020-04-05 09:08:51 · 143 阅读 · 0 评论 -
LeetCode #4(#26, #27, #28 )
2020.4.426. Remove Duplicates from Sorted Array27. Remove Element28. Implement strStr()26. Remove Duplicates from Sorted ArrayGiven a sorted array nums, remove the duplicates in-place such that eac...原创 2020-04-04 08:32:24 · 135 阅读 · 0 评论 -
LeetCode #3 ( #14, #20, #21 )
2020.4.314. Longest Common Prefix20. Valid Parentheses21. Merge Two Sorted Lists14. Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.If th...原创 2020-04-03 09:12:00 · 143 阅读 · 0 评论 -
LeetCode #2 ( #7, #9, #13)
7. Reverse IntegerGiven a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Example ...原创 2020-04-02 09:57:19 · 194 阅读 · 1 评论 -
LeetCode #1(#1)
1. Two SumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not us...原创 2020-04-01 22:07:04 · 145 阅读 · 0 评论 -
LeetCode!启动!#0
while (your first time going through leetcode) {if (five easy) {You are good;} else if (five medium) {Excellent;} else if (five hard) {ACM players or Genius;}}原创 2020-04-01 22:01:14 · 159 阅读 · 0 评论
分享