Tag: algorithm
All the articles with the tag "algorithm".
-
Sliding Window
·· 2 min read最近在做滑动窗口的题,在这里整理总结一下思路。
-
LeetCode Biweekly Contest 101
·· 4 min readGiven 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
·· 7 min readThere is a bag that consists of items, each item has a number 1, 0, or -1 written on it.
-
LeetCode Weekly Contest 337
·· 5 min readYou are given a positive integer n.
-
LeetCode Biweekly Contest 100
·· 5 min readYou 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
·· 2 min readA 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
·· 5 min readYou are given a 0-indexed array of string words and two integers left and right.
-
KMP Algorithm
·· 1 min readPattern 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
·· 1 min readWhat is a Disjoint set data structure?
-
Heap Sort
·· 1 min readHeap 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...