LeetCode题目800
gz153016
格局,品味
展开
-
LeetCoe-1. Two Sum
提交代码:class Solution {public: vector<int> twoSum(vector<int>& nums, int target) { for(int i=0;i&amp原创 2019-01-04 17:27:38 · 261 阅读 · 0 评论 -
LeetCode-Reverse Integer
Reverse IntegerGiven a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are ...原创 2019-01-18 15:19:43 · 125 阅读 · 0 评论 -
[LeetCode] 1. 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...原创 2019-02-23 11:08:40 · 168 阅读 · 0 评论 -
4. Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).You may assume nums1 and num...原创 2019-03-09 09:48:57 · 135 阅读 · 0 评论