Tag: algorithm
All the articles with the tag "algorithm".
-
Sliding Window
·最近在做滑动窗口的题,在这里整理总结一下思路。
-
LeetCode Biweekly Contest 101
·Given two arrays of unique digits nums1 and nums2, return the smallest number that contains at least one digit from each array.
-
LeetCode Weekly Contest 338
·There is a bag that consists of items, each item has a number 1, 0, or -1 written on it.
-
LeetCode Weekly Contest 337
·You are given a positive integer n.
-
LeetCode Biweekly Contest 100
·You are given an integer money denoting the amount of money (in dollars) that you have and another integer children denoting the number of children that you ...
-
Trie Tree
·A trie (derived from retrieval) is a multiway tree data structure used for storing strings over an alphabet. It is used to store a large amount of strings. T...
-
LeetCode Weekly Contest 336
·You are given a 0-indexed array of string words and two integers left and right.
-
KMP Algorithm
·Pattern searching is an important problem in computer science. When we do search for a string in a notepad/word file or browser or database, pattern-searchin...
-
Disjoint Set Data Structure
·What is a Disjoint set data structure?
-
Heap Sort
·Heap sort is a comparison-based sorting technique based on Binary Heap data structure. It is similar to the selection sort where we first find the minimum el...