package
0.0.0-20220628210115-d6c755dbe226
Repository: https://github.com/golark/algos.git
Documentation: pkg.go.dev
# Functions
IsPalindrome returns True if given string is a palindrome uses a two pointers which start from both ends of the string comparing and moving towards the middle of the string O(n) time, O(1) space.
maxProfit returns the maximum profit given the prices.
mimimumwindowsort find minumum window when sorted will sort the whole slice two pointers approach O(n) time and O(1) space.
two_numbers_target_sum given slice and target return true if 2 numbers sum up to the target O(n) time and O(n) space.