Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anupam-kumar-krishnan/Competitive_Programming
/ functions
Functions
2,161 in github.com/anupam-kumar-krishnan/Competitive_Programming
⨍
Functions
2,161
◇
Types & classes
350
↓ 3 callers
Function
dfs2
Coding Platforms(codechef,codeforces,etc)/Codeforces/Bakry_and_Partitioning.cpp:40
↓ 3 callers
Function
factorial
Basic Programming/All_Patterns.c:54
↓ 3 callers
Function
fo
Coding Platforms(codechef,codeforces,etc)/Codeforces/978C.cpp:27
↓ 3 callers
Function
gcd
Coding Platforms(codechef,codeforces,etc)/CodeChef/July Long Challenge/Optimal Denomination.cpp:4
↓ 3 callers
Method
helper
(int num, String a, String b, String c)
Coding Platforms(codechef,codeforces,etc)/LeetCode/integer_to_roman.java:13
↓ 3 callers
Function
inorder
INORDER
All Data Structures/TREE/Reverse tree path.cpp:78
↓ 3 callers
Function
insertion_sort
Basic Programming/Insertion_Sort.cpp:18
↓ 3 callers
Function
isEmpty
Queue is empty when size is 0
Basic Programming/queue.c:38
↓ 3 callers
Function
isFull
All Data Structures/Queues/double-ended_queue(deque) .c:37
↓ 3 callers
Function
newNode
Utility function to create a new Tree Node
All Data Structures/TREE/Left_view_Of_Binary_Tree.cpp:16
↓ 3 callers
Function
newNode
Utility function to create a new Tree Node
All Data Structures/TREE/Top_View_Of_BT.cpp:16
↓ 3 callers
Function
newNode
Utility function to create a new Tree Node
All Data Structures/TREE/Level_Order_Traversal_in_Spiral_Form.cpp:13
↓ 3 callers
Function
newNode
Utility function to create a new Tree Node
DSA 450/Binary Trees/level_order_traversal.cpp:13
↓ 3 callers
Function
newNode
Utility function to create a new Tree Node
DSA 450/Binary Trees/Leftviewoftree.cpp:15
↓ 3 callers
Function
postorder
DSA 450/Binary Search Tree/Bst-implementaion.cpp:179
↓ 3 callers
Function
powll
Coding Platforms(codechef,codeforces,etc)/Codeforces/C_Sum_of_Cubes.cpp:4
↓ 3 callers
Function
preorder
DSA 450/Binary Search Tree/Bst-implementaion.cpp:169
↓ 3 callers
Method
rInsert
All Data Structures/TREE/BST.cpp:116
↓ 3 callers
Function
rtrim
Coding Platforms(codechef,codeforces,etc)/HackerRank/SubArrayDiv.Cpp:71
↓ 3 callers
Function
rtrim
Coding Platforms(codechef,codeforces,etc)/HackerRank/Grid_Search/c++/solution.cpp:118
↓ 3 callers
Function
swap
All Algorithms/Sorting Algorithm/Randomized_Quicksort.c:3
↓ 3 callers
Function
unin
Coding Platforms(codechef,codeforces,etc)/Codeforces/Cutting a graph (Codeforces Edu).cpp:30
↓ 2 callers
Function
BFS
All Data Structures/GRAPHS/BreadthFirstSearch.cpp:6
↓ 2 callers
Method
Inorder
All Data Structures/TREE/DeletionAVL.cpp:189
↓ 2 callers
Function
LCS_Pr
Top down appraoch
All Algorithms/Dynamic Programming/LIS/LongestCommonSubSeq.cpp:8
↓ 2 callers
Function
LIS
Coding Platforms(codechef,codeforces,etc)/Codeforces/C_1682.cpp:10
↓ 2 callers
Function
Merge
All Algorithms/Sorting Algorithm/IterativeMergeSort.cpp:17
↓ 2 callers
Function
Print
All Algorithms/Sorting Algorithm/BubbleSort.cpp:6
↓ 2 callers
Function
Print
All Algorithms/Sorting Algorithm/RecursiveMergeSort.cpp:6
↓ 2 callers
Function
Print
All Algorithms/Sorting Algorithm/ShellSort.cpp:9
↓ 2 callers
Function
Print
All Algorithms/Sorting Algorithm/Bucket-BinSort.cpp:6
↓ 2 callers
Function
Print
All Algorithms/Sorting Algorithm/IterativeMergeSort.cpp:6
↓ 2 callers
Function
Print
All Algorithms/Sorting Algorithm/InsertionSort.cpp:6
↓ 2 callers
Method
Push
All Data Structures/Stack/Checkpalindrome.cpp:17
↓ 2 callers
Function
badCharHeuristic
All Algorithms/String algorithms/Boyer Moore Algorithm.cpp:9
↓ 2 callers
Function
buildList
DSA 450/Linked List/addTwoNumbersRepresentedByLinkedList.cpp:16
↓ 2 callers
Function
cal
All Data Structures/TREE/fenwickTree_countInversion.cpp:12
↓ 2 callers
Function
check
Coding Platforms(codechef,codeforces,etc)/LeetCode/sudoku.cpp:1
↓ 2 callers
Function
check
Coding Platforms(codechef,codeforces,etc)/spoj/Finding the Kth Prime.cpp:9
↓ 2 callers
Function
count
All Data Structures/TREE/Tree.c:152
↓ 2 callers
Function
createHashValue
All Algorithms/String algorithms/rabinKarpAlgorithm.cpp:11
↓ 2 callers
Function
dfs
All Data Structures/TREE/Longest_path_in_tree.cpp:10
↓ 2 callers
Function
display
All Data Structures/Sorting/selectionsort.cpp:9
↓ 2 callers
Function
display
All Data Structures/Sorting/mergeSort.cpp:9
↓ 2 callers
Function
display
All Algorithms/Algebraic algorithms/strassen_matrix.c:60
↓ 2 callers
Function
frn
Coding Platforms(codechef,codeforces,etc)/Codeforces/B_1546.cpp:26
↓ 2 callers
Function
g
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/Farmer And His Plot.cpp:4
↓ 2 callers
Function
gcd
Coding Platforms(codechef,codeforces,etc)/Codeforces/playingwithgcd.cpp:6
↓ 2 callers
Function
getNode
All Data Structures/Trie/LCPtrie.cpp:16
↓ 2 callers
Method
getSize
All Data Structures/Queues/ImplementCircularQueue.cpp:59
↓ 2 callers
Function
getSum
Return sum of elements in range from index qs (query start) to qe (query end). It mainly uses getSumUtil()
All Data Structures/Segment Tree/Lazy_Propagation.cpp:154
↓ 2 callers
Function
heapify
All Data Structures/Sorting/Heap_Sort.cpp:6
↓ 2 callers
Function
heapify
Function to heapify the tree
All Data Structures/Queues/PriorityQueue.cpp:15
↓ 2 callers
Function
heapify
Heapify Function
All Algorithms/Sorting Algorithm/heap_sort.cpp:7
↓ 2 callers
Function
heapify
(arr, n, i)
All Algorithms/Sorting Algorithm in Python/heap_Sort.py:5
↓ 2 callers
Method
height
(TreeNode node)
DSA 450/Binary Search Tree/Balanced_BinaryTree.java:39
↓ 2 callers
Function
inOrder
Accolite/Binary Tree into its Mirror Tree.cpp:42
↓ 2 callers
Function
init
Coding Platforms(codechef,codeforces,etc)/spoj/Finding the Kth Prime.cpp:42
↓ 2 callers
Function
inorder
DSA 450/Binary Trees/insertion.cpp:63
↓ 2 callers
Function
inputmatrix
All Algorithms/Algebraic algorithms/strassen_matrix.c:41
↓ 2 callers
Function
insert_start
All Data Structures/Singly_LL/menu_based_singly_linked_list.cpp:149
↓ 2 callers
Function
isEmpty
check if stack is empty
All Data Structures/Stack/Sort_stack_using_recursion.cpp:14
↓ 2 callers
Function
isVowel
* Given a string consisting of lowercase english alphabets, reverse only the vowels present in it and print the resulting string. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Reversing_the_vowels.cpp:22
↓ 2 callers
Function
kth
All Algorithms/Graph Algorithm/LCA.cpp:25
↓ 2 callers
Function
lca
All Algorithms/Graph Algorithm/LCA.cpp:18
↓ 2 callers
Function
max_segtree
All Algorithms/Graph Algorithm/SegmentTree(max-query).cpp:112
↓ 2 callers
Function
minnode
DSA 450/Binary Search Tree/Bst-implementaion.cpp:128
↓ 2 callers
Function
modInverse
Returns n^(-1) mod p
Coding Platforms(codechef,codeforces,etc)/Codeforces/1228D.cpp:34
↓ 2 callers
Method
peek
All Data Structures/Queues/ImplementCircularQueue.cpp:51
↓ 2 callers
Function
printArr
function to print array
Basic Programming/BubbleSort.cpp:23
↓ 2 callers
Function
printArray
All Data Structures/Sorting/CountSort.cpp:5
↓ 2 callers
Function
printArray
Print the tree
All Data Structures/Queues/PriorityQueue.cpp:64
↓ 2 callers
Function
printArray
All Data Structures/Arrays/20) Rearrange array in alternating positive & negative items.cpp:42
↓ 2 callers
Function
printArray
Prints the array
All Algorithms/Sorting Algorithm/heap_sort.cpp:48
↓ 2 callers
Function
printArray
Print Sorted array to console
All Algorithms/Sorting Algorithm/tim_sort.cpp:90
↓ 2 callers
Function
printArray
All Algorithms/Sorting Algorithm/INSERTION SORT.cpp:21
↓ 2 callers
Function
printArray
DSA 450/Arrays/20.Rearrange array in alternating positive & negative.cpp:43
↓ 2 callers
Function
printArray
DSA 450/Arrays/1. Reverse the Array.cpp:16
↓ 2 callers
Function
printDeque
All Data Structures/Queues/double-ended_queue(deque) .c:129
↓ 2 callers
Function
printStack
to print contents of stack
All Data Structures/Stack/Sort_stack_using_recursion.cpp:76
↓ 2 callers
Function
printStack
All Data Structures/Stack/reverseStack.cpp:29
↓ 2 callers
Function
print_array
All Algorithms/Bubble_sort.cpp:18
↓ 2 callers
Function
pushFront
All Data Structures/Queues/double-ended_queue(deque) .c:67
↓ 2 callers
Function
pushRear
All Data Structures/Queues/double-ended_queue(deque) .c:82
↓ 2 callers
Function
resize
All Data Structures/Queues/double-ended_queue(deque) .c:42
↓ 2 callers
Method
robRange
(int[] num, int start, int end)
Coding Platforms(codechef,codeforces,etc)/LeetCode/house robber2.java:10
↓ 2 callers
Function
rtrim
Coding Platforms(codechef,codeforces,etc)/HackerRank/Pairs.cpp:80
↓ 2 callers
Function
rtrim
Coding Platforms(codechef,codeforces,etc)/HackerRank/leftRotation.cpp:83
↓ 2 callers
Function
search
All Algorithms/String algorithms/Boyer Moore Algorithm.cpp:22
↓ 2 callers
Method
show
All Data Structures/Singly_LL/main.cpp:91
↓ 2 callers
Function
split
Coding Platforms(codechef,codeforces,etc)/HackerRank/Pairs.cpp:91
↓ 2 callers
Function
split
Coding Platforms(codechef,codeforces,etc)/HackerRank/leftRotation.cpp:94
↓ 2 callers
Function
split
Coding Platforms(codechef,codeforces,etc)/HackerRank/SubArrayDiv.Cpp:79
↓ 2 callers
Function
split
Coding Platforms(codechef,codeforces,etc)/HackerRank/Grid_Search/c++/solution.cpp:129
↓ 2 callers
Function
strassenMultiply
All Algorithms/strassen.cpp:137
↓ 2 callers
Function
swap
Function to swap position of two elements
All Data Structures/Queues/PriorityQueue.cpp:8
↓ 2 callers
Function
swap
function to swap two elements
All Algorithms/Sorting Algorithm/quick_sort.cpp:4
↓ 2 callers
Function
swap
All Algorithms/Sorting Algorithm/wave_sort/wave_sort.cpp:4
↓ 2 callers
Function
swap
All Algorithms/Sorting Algorithm/DNF_sort/dnf_sort.cpp:4
↓ 2 callers
Function
swap
All Algorithms/Sorting Algorithm/Quick_sort/Quick_sort.cpp:4
← previous
next →
101–200 of 2,161, ranked by callers