algorithm-patterns

module
v0.0.0-...-5367945 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2022 License: MIT

README

algorithm-patterns

Different kind of algorithm tricks and patterns

Directories

Path Synopsis
arrays-hashing
product-array-except-itself
Product of Array Except Self Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].
Product of Array Except Self Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].
top-k-frequent-elements
Top K Frequent Elements in Golang Given an integer array nums and an integer k, return the k most frequent elements.
Top K Frequent Elements in Golang Given an integer array nums and an integer k, return the k most frequent elements.
valid-anagram
Valid Anagram solution in golang Given two strings s and t, return true if t is an anagram of s, and false otherwise.
Valid Anagram solution in golang Given two strings s and t, return true if t is an anagram of s, and false otherwise.
bit-manipulation
intervals
insert-interval
Insert Interval.
Insert Interval.
merge-intervals
Merge intervals in golang language
Merge intervals in golang language
non-overlapping
Non-overlapping Intervals in Golang language.
Non-overlapping Intervals in Golang language.
linked-list
reverse-linked-list
Reverse Linked List.
Reverse Linked List.
math-geometry
sorting
sorting-in-golang/sort-map-by-key
A map is an unordered collection of key-value pairs.
A map is an unordered collection of key-value pairs.
stack
daily-temperatures
Daily Temperatures.
Daily Temperatures.
evaluate-reverse-polish-notation
Evaluate Reverse Polish Notation Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Evaluate Reverse Polish Notation Evaluate the value of an arithmetic expression in Reverse Polish Notation.
tree
two-pointer
container-with-most-water
Notice that you may not slant the container.
Notice that you may not slant the container.
three-sum
3Sum Three sum solution in Golang Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.
3Sum Three sum solution in Golang Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.
valid-palindrome
Valid Palindrome solution in Golang language using two pointer technique
Valid Palindrome solution in Golang language using two pointer technique

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL