摘要:
https://leetcode.com/problems/jump-game-ii/Given an array of non-negative integers, you are initially positioned at the first index of the array.Each ... 阅读全文
摘要:
https://leetcode.com/problems/jump-game/ Given an array of non-negative integers, you are initially positioned at the first index of the array. Each e 阅读全文
摘要:
https://leetcode.com/problems/insertion-sort-list/Sort a linked list using insertion sort.解题思路:先回忆一下插入排序。对于num[i],将他插入到前面已经排好序的0...i-1的合适的位置。i从0-n遍历。这... 阅读全文
摘要:
https://leetcode.com/problems/factorial-trailing-zeroes/Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in l... 阅读全文
摘要:
https://leetcode.com/problems/trapping-rain-water/Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute ... 阅读全文