上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2017-12-29 17:11 皇家大鹏鹏 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For exa 阅读全文
posted @ 2017-12-29 15:35 皇家大鹏鹏 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding elemen 阅读全文
posted @ 2017-12-29 15:14 皇家大鹏鹏 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
posted @ 2017-12-22 18:11 皇家大鹏鹏 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-1,2, 阅读全文
posted @ 2017-12-22 11:13 皇家大鹏鹏 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 本篇博文记录了博主本人leetcode的刷题经历,持续更新中,一方面是方便自己日后复习;另一方面也是给大家的检索提供便利。本帖汇总了博主已经做完的leetcode的所有题目链接,如果大家有什么建议或者是更好的解法,也请大家多多指教 推荐一个大神的博客,这篇博客写链表环写的很好:http://www. 阅读全文
posted @ 2017-12-21 14:20 皇家大鹏鹏 阅读(492) 评论(0) 推荐(0) 编辑
摘要: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below 阅读全文
posted @ 2017-12-20 18:51 皇家大鹏鹏 阅读(252) 评论(0) 推荐(0) 编辑
摘要: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
posted @ 2017-12-20 16:16 皇家大鹏鹏 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2017-12-15 20:55 皇家大鹏鹏 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this in on 阅读全文
posted @ 2017-12-13 14:50 皇家大鹏鹏 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页