
LeetCode
文章平均质量分 61
柚za
柚子
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode8-StringtoInteger
LeetCode8-StringtoInteger原创 2017-04-17 19:10:43 · 396 阅读 · 0 评论 -
LeetCode18 - 4Sum
LeetCode18 - 4Sum原创 2017-07-18 14:17:22 · 387 阅读 · 0 评论 -
LeetCode24 - swap nodes in pairs
LeetCode24 - swap nodes in pairs原创 2017-08-07 16:04:54 · 282 阅读 · 0 评论 -
LeetCode25 - reverse nodes in k groups
LeetCode25 - reverse nodes in k groups原创 2017-08-07 17:25:31 · 402 阅读 · 1 评论 -
LeetCode29 - divide two Integers
LeetCode29 - Divide Two Integer原创 2017-08-09 09:31:06 · 340 阅读 · 0 评论 -
LeetCode 30 - Substring with Concatenation of all words
LeetCode30 - Substring with concatenation of all words原创 2017-08-09 09:50:45 · 309 阅读 · 0 评论 -
leetcode 31 - next permutation
LeetCode 31 - next permutation原创 2017-08-09 11:53:31 · 404 阅读 · 1 评论 -
LeetCode23 - merge k sorted lists
LeetNode 23 - merge k sorted lists原创 2017-08-07 15:23:42 · 366 阅读 · 0 评论 -
leetcode36 - Valid Sudoku
leetcode 36 - valid sudoku原创 2017-09-04 12:09:54 · 383 阅读 · 0 评论 -
Leetcode38 - Count And Say
Leetcode38 - count and say原创 2017-09-18 17:58:25 · 587 阅读 · 0 评论 -
Leetcode之运算库函数自定义
一、Leetcode50——pow【注意点】 1、n的值可以为正,负,0 2、O(n)会TLE,使用递归时,一定要将中间步保存 3、有博文中提到,若n<0,可以令n=-n, x = 1/x,但需要对n取反后是否出界进行处理,以下代码可以避免这个问题【Python3代码】class Solution: def myPow(self,x,n): if n ==...原创 2018-04-13 20:20:33 · 1723 阅读 · 0 评论 -
LeetCode20 - Valid parentheses
LeetCode 20 - Valid parentheses原创 2017-07-21 10:58:34 · 314 阅读 · 0 评论 -
LeetCode19 - remove nth node from end of list
LeetCode19 - remove nth node from end of list原创 2017-07-21 09:54:37 · 316 阅读 · 0 评论 -
LeetCode17 - letter combinations of a phone number
LeetCode17 - letter combinations of a phone number原创 2017-07-17 17:35:18 · 425 阅读 · 0 评论 -
LeetCode9-Palindrome Number
LeetCode9-Palindrome Number原创 2017-04-18 10:01:28 · 327 阅读 · 0 评论 -
LeetCode11-Container With Most Water
LeetCode11-Container with most water原创 2017-04-28 16:58:04 · 276 阅读 · 0 评论 -
LeetCode10-Regular Expression Matching
LeetCode10-Regular Expression Matching原创 2017-04-18 16:04:27 · 532 阅读 · 0 评论 -
LeetCode7-Integer Reverse
LeetCode7-Integer Reverse原创 2017-04-17 16:11:36 · 278 阅读 · 0 评论 -
LeetCode5-Longest Palindromic Substring
LeetCode第5题:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000原创 2017-04-17 11:18:07 · 308 阅读 · 0 评论 -
LeetCode6-ZigZag convert
LeetCode6-Zigzag原创 2017-04-17 15:11:01 · 369 阅读 · 0 评论 -
LeetCode14-Longest Common Prefix
LeetCode14 - Longest Common Prefix原创 2017-07-13 11:38:28 · 362 阅读 · 0 评论 -
LeetCode15 - 3Sum
LeetCode15 - 3Sum原创 2017-07-14 10:56:03 · 369 阅读 · 0 评论 -
LeetCode16 - 3Sum Closest
LeetCode16 - 3Sum closest原创 2017-07-16 13:40:24 · 375 阅读 · 0 评论 -
leetcode之子数组问题
一、最大和子数组问题——寻找子数组使得该子数组中元素的和最大【思路】 1、初始化left = 0, maxSum = 0, right = 0 2、计算nums[left, right]的元素和,若大于maxSum,则更新maxSum。另,若>0,则right++,表示继续向该子数组中添加元素,否则,另left= right +1 , right = left,表示当前子数组已经...原创 2018-04-14 10:01:53 · 385 阅读 · 0 评论