leetcode
Mcrazji
一直在学习
展开
-
LeetCode Two Sum
Given 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 use the same e...原创 2018-02-26 23:20:31 · 81 阅读 · 0 评论 -
leetcode Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123 Output: 321 Example 2:Input: -123 Output: -321 Example 3:Input: 120 Output: 21 Note:Assume we are dealing with an envi...原创 2018-02-27 00:03:00 · 84 阅读 · 0 评论 -
LeetCode Valid Parentheses
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid. The brackets must close in the correct order,"()"and"()[]{}"are all valid bu...原创 2018-02-28 20:44:37 · 102 阅读 · 0 评论 -
LeetCode gas-station 加油站解题思路
一、题目描述 There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from statio...原创 2019-07-16 17:17:22 · 423 阅读 · 0 评论