随笔分类 - 数组
摘要:Trapping Rain Water 题解 题目来源:https://leetcode.com/problems/trapping-rain-water/description/ Description Given n non-negative integers representing an e
阅读全文
摘要:Sum 系列题解 Two Sum题解 题目来源:https://leetcode.com/problems/two sum/description/ Description Given an array of integers, return indices of the two numbers s
阅读全文
摘要:Set Matrix Zeroes 题解 题目来源:https://leetcode.com/problems/set matrix zeroes/description/ Description Given a m x n matrix, if an element is 0, set its e
阅读全文
摘要:Search in Rotated Sorted Array 系列题解 题目来源: "Search in Rotated Sorted Array" "Search in Rotated Sorted Array II" 第一版 Suppose an array sorted in ascendin
阅读全文
摘要:Rotate Image 题解 题目来源:https://leetcode.com/problems/rotate image/description/ Description You are given an n x n 2D matrix representing an image. Rotat
阅读全文
摘要:Plus One 题解 题目来源:https://leetcode.com/problems/plus one/description/ Description Given a non negative integer represented as a non empty array of digi
阅读全文
摘要:Remove Element 题解 题目来源:https://leetcode.com/problems/remove element/description/ Description Given an array and a value, remove all instances of that
阅读全文
摘要:Container With Most Water 题解 题目来源:https://leetcode.com/problems/container with most water/description/ Description Given n non negative integers a1, a
阅读全文
摘要:Remove Duplicates from Sorted Array II 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted array ii/description/ Description Follow up
阅读全文
摘要:Remove Duplicates from Sorted Array 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted array/description/ Description Given a sorted
阅读全文
摘要:Subsets II 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/subsets ii/description/ Description Given a collection of integers that might contain dupli
阅读全文
摘要:Subsets 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/subsets/description/ Description Given a set of distinct integers, nums, return all possible s
阅读全文
摘要:(本篇博客是本人第一篇数据结构的博客,有什么不足还望各位看官指出!!) 题目来源:SOJ 1000. Huffman Coding V1,V3 题目描述 V3: Description 对输入的英文大写字母序列进行统计概率,然后构建Huffman树,得出每个字母的Huffman编码,输出字母序列的总
阅读全文

浙公网安备 33010602011771号