This repo contains solution for some of the frequently asked question in competitive challenges.
Hope you find it useful, feel free fork.
About Repo
It Contains programming questions and there solution. If there is more than solution to it, there can be multiple file linked to it.
Each folder inside it has a readme.md
that contains question, and some other statistics about the question.
Some program in java need assertion to be on, to validate correctness of program, enable that using
-ea
arg in JVM.
It contains (or will contain) some the most used algorithm in programming.
Folder | Name | Dificulty | Best Solution |
---|---|---|---|
TNS |
Two Number Sum | Easy | ------------- |
CVBST |
Closest Value in BST | Easy | ------------- |
DFS |
Depth First Search | Easy | ------------- |
LL |
Doubly Linked List | Easy | ------------- |
BS |
Binary Search | Easy | ------------- |
FIB |
Nth Fibonacci | Easy | ------------- |
PS |
Two Number Sum | Easy | ------------- |
CCE |
Caesar Cipher Encryptor | Easy | ------------- |
TLN |
Find Three Largest Numbers | Easy | ------------- |
ThNS |
Three Numbers Sum | Medium | ------------- |
SD |
Smallest Difference | Medium | ------------- |
MEE |
Move Element To End | Easy | ------------- |
MSSAE |
Maximum Subset Sum With No Adjacent Elements | Easy | ------------- |
NWMC |
Number Of Ways To Make Change | Medium | ------------- |
MNCC |
Min Number Of Coins For Change | Medium | ------------- |
LD |
Levenshtein Distance | Medium | ------------- |
SCC |
Single Cycle Check | Easy | ------------- |
KAD |
Kadane's Algorithm | Easy | ------------- |
BFS |
Breadth-first Search | Easy | ------------- |
RS |
River Sizes | Medium | ------------- |
YCA |
Youngest Common Ancestor | Easy | ------------- |
MHC |
Min Heap Construction | Medium | ------------- |
RNFE |
Remove Kth Node From End | Easy | ------------- |
PER |
Permutations | Easy | ------------- |
MMSC |
Min Max Stack Construction | Easy | ------------- |
PSET |
Powerset | Easy | ------------- |
BB |
Balanced Brackets | Easy | ------------- |
SSM |
Search In Sorted Matrix | Easy | ------------- |
LPS |
Longest Palindromic Substring | Medium | ------------- |
GA |
Group Anagrams | Easy | ------------- |
STC |
Suffix Trie Construction | Easy | ------------- |