摘要:
package LeetCode_72 /** * 72. Edit Distance * https://leetcode.com/problems/edit-distance/description/ * * Given two words word1 and word2, find the m 阅读全文
摘要:
package LeetCode_1426 import java.util.* /** * 1426. Counting Elements * Given an integer array arr, count element x such that x + 1 is also in arr. * 阅读全文
摘要:
什么是霍夫曼编码 (Huffman Coding) 是一种用于无损数据压缩的权编码算法。由美国计算机科学家David Albert Huffman在1952年发明。 霍夫曼编码使用变长编码表泽源符号(如一个字母)进行编码,其中变长编码表是通过一种评估来源符号出现几率的方法得到的,出现几率高的字母使用 阅读全文
摘要:
package LeetCode_136 /** * 136. Single Number * https://leetcode.com/problems/single-number/description/ * Given a non-empty array of integers, every 阅读全文
摘要:
package _Sort.Algorithm /** * https://www.geeksforgeeks.org/heap-sort/ * https://www.cnblogs.com/chengxiao/p/6129630.html * * Heap Sort is an in-place 阅读全文
摘要:
package LeetCode_1290 /** * 1290. Convert Binary Number in a Linked List to Integer * https://leetcode.com/problems/convert-binary-number-in-a-linked- 阅读全文
摘要:
package LeetCode_713 /** * 713. Subarray Product Less Than K * https://leetcode.com/problems/subarray-product-less-than-k/description/ * * Your are gi 阅读全文
摘要:
package LeetCode_930 /** * 930. Binary Subarrays With Sum * https://leetcode.com/problems/binary-subarrays-with-sum/description/ * * In an array A of 阅读全文
摘要:
package LeetCode_152 /** * 152. Maximum Product Subarray * https://leetcode.com/problems/maximum-product-subarray/description/ * * Given an integer ar 阅读全文
摘要:
package LeetCode_560 /** * 560. Subarray Sum Equals K * https://leetcode.com/problems/subarray-sum-equals-k/description/ * * Given an array of integer 阅读全文