leetcode
文章平均质量分 83
believexfr
这个作者很懒,什么都没留下…
展开
-
leetcode--594--Longest Harmonious Subsequence
题目来源:https://leetcode.com/problems/longest-harmonious-subsequence/description/转载请注明出处:题目:We define a harmonious array is an array where the difference between its maximum v原创 2017-09-17 17:07:58 · 195 阅读 · 0 评论 -
leetcode--23--Merge k Sorted Lists
原题:Merge k Sorted Lists Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.解答:C++版本 class Solution {public: ListNode *mergeKLists(vector原创 2016-10-03 14:47:38 · 1046 阅读 · 0 评论 -
leetcode--34--Search for a Range
、原创 2016-10-05 12:07:48 · 251 阅读 · 0 评论 -
leetcode--37--Sudoku Solver
原题:Sudoku Solver Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be only one unique solutio原创 2016-10-05 15:47:39 · 251 阅读 · 0 评论 -
leetcode--1--two sum
原题:public int[] twoSum(int[] nums, int target) { MapInteger, Integer> map = new HashMap for (int i = 0; i nums.length; i++) { int complement = target - nums[i]; if (map.cont原创 2016-09-26 22:03:20 · 245 阅读 · 0 评论 -
leetcode--403--frog jump
https://leetcode.com/problems/frog-jump/description/QUESTION:A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on原创 2017-08-27 11:34:34 · 370 阅读 · 0 评论 -
leetcode--322--coins change
QUESTION:https://leetcode.com/problems/coin-change/description/You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of c原创 2017-08-27 12:31:07 · 206 阅读 · 0 评论 -
leetcode--645--Set Mismatch
leetcode原创 2017-09-17 15:58:04 · 302 阅读 · 0 评论 -
leetcode--136--Longest Substring Without Repeating Characters
题目来源:https://leetcode.com/problems/single-number/discuss/转载请注明出处:http://blog.csdn.net/believexfr/article/details/78011958题目:Given an array of in原创 2017-09-26 11:38:24 · 124 阅读 · 0 评论