- Factorial: https://github.com/theodesp/go-hackerearth/blob/master/basic-programming/Factorial.go
- Get Prime Numbers: https://github.com/theodesp/go-hackerearth/blob/master/basic-programming/PrimeNumber.go
- Count bits in number:
- Transpose Matrix:
- Rotate Left Array:
- Check if two strings are anagrams:
- Implement Queue using 2 stacks:
- Find balanced brackets:
- Implement Stack using queues:
- Implement a Sortable Stack
- Implement Single Linked List:
- Implement Double Linked List:
- Find middle element:
- Reverse a list:
- Remove duplicates from linked list
- NQeens:
- Implementation:
- Find all words in Matrix
- Implementation
- Invert a tree:
- Tree traveral:
- https://www.geeksforgeeks.org/tree-traversals-inorder-preorder-and-postorder/
- https://leetcode.com/problems/binary-tree-preorder-traversal/
- https://leetcode.com/problems/binary-tree-postorder-traversal/
- https://leetcode.com/problems/binary-tree-inorder-traversal/
- https://leetcode.com/problems/binary-tree-level-order-traversal/
- Insert into BST:
- Delete in BST:
- Lowest common ancestor of BST
- Print Nodes at distance K from root of BST
- Check if a binary tree is subtree of another binary tree:
- Check if two trees are mirror:
- Binary Search Impl:
- Compute SQRT of integer:
- Find starting and ending position of value in sorted array
- Implement indexOf string:
- Selection Sort:
- QuickSort:
- SortBy:
- Add Two Binary Strings:
- Check if string is palindrome:
- Click Counts
- Longest Substring no-repeating chars
- Implementation:
- Longest Common Substring
- Find all prime numbers until n
- Find all substrings of given s
- LRU Cache Implementation