
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 · 267 阅读 · 0 评论 -
LeetCode-Reverse Integer
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 ...原创 2019-01-18 15:19:43 · 129 阅读 · 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 · 178 阅读 · 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 · 142 阅读 · 0 评论