![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
文章平均质量分 85
ouyangnandi1234
这个作者很懒,什么都没留下…
展开
-
TwoSum[Medium]
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe原创 2014-12-15 23:29:35 · 255 阅读 · 0 评论 -
Min Stack[Easy]
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get原创 2014-12-15 14:35:10 · 259 阅读 · 0 评论 -
Reverse Words in a String [Medium]
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Clarification:What constitutes原创 2014-12-16 15:22:15 · 315 阅读 · 0 评论 -
Plus One [Easy]
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.====================原创 2014-12-17 02:17:53 · 265 阅读 · 0 评论 -
Add Two Numbers [Medium]
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link原创 2014-12-17 16:51:28 · 257 阅读 · 0 评论 -
Find Peak Element [Medium]
A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks, in原创 2014-12-16 18:43:05 · 568 阅读 · 0 评论 -
Reverse Integer [Easy]
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good questions to ask before coding. Bonus points for原创 2014-12-18 14:52:36 · 307 阅读 · 0 评论