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
↓ 1 callers
Function
solve
* Given a number N, find the first N Fibonacci numbers. The first two number of the series are 1 and 1. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Print_first_Fibonacci.cpp:22
↓ 1 callers
Function
solve
* A series with same common difference is known as arithmetic series. The first term of series is 'a' and common difference is d. The series looks lik
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sum_of_AP_Series.cpp:22
↓ 1 callers
Function
solve
* Given a single integer N, your task is to find the sum of the square of first N odd natural Numbers. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Power_of_Pow.cpp:22
↓ 1 callers
Function
solve
* Given an array nums of positive integers of size N. Find all distinct digits present in nums. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Make_Distinct_Digit_Array.cpp:22
↓ 1 callers
Function
solve
* Given a number N. The task is to print a series of asterisk(*) from 1 till N terms with increasing order and difference being 1. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Pattern_printing.cpp:22
↓ 1 callers
Function
solve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Cube_root_number.cpp:32
↓ 1 callers
Function
solve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Rearranging_array.cpp:31
↓ 1 callers
Function
solve
* Split the given string into Alphabets and numbers */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Split_Strings.cpp:22
↓ 1 callers
Function
solve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Print_n_number_without_Loop.cpp:28
↓ 1 callers
Function
solve
* Given a string. Count the number of Camel Case characters in it. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Count_camel.cpp:22
↓ 1 callers
Function
solve
* Given a string S of length N, find the pattern of the strings. Decrease one character */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Pattern_of_Strings.cpp:22
↓ 1 callers
Function
solve
* Write a program to calculate nPr. nPr represents n permutation r and value of nPr is (n!) / (n-r)!. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/nPr_practice.cpp:22
↓ 1 callers
Function
solve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/First_repeating_element.cpp:34
↓ 1 callers
Function
solve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Find_Min_Max_in_Array.cpp:26
↓ 1 callers
Function
solve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Array_subset.cpp:33
↓ 1 callers
Function
solve
* Given a matrix Grid[][] of size NxN. Calculate the absolute difference between the sums of its diagonals. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Find_difference_between_sum_of_diagonals.cpp:22
↓ 1 callers
Function
solve
* Given a number N. The task is to print Floyd's triangle with N lines. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Floyd_Traingle.cpp:22
↓ 1 callers
Function
solve
* Given a non null integer matrix Grid of dimensions NxM.Calculate the sum of its elements. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sum_of_elements_matrix.cpp:22
↓ 1 callers
Function
solve
* Find Factorial of a given number N. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Small_Factorial.cpp:22
↓ 1 callers
Function
solve_test
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/buying_new_tables.cpp:5
↓ 1 callers
Function
sort012
All Data Structures/Arrays/4) Sort an array of 0s,1s and 2s.cpp:27
↓ 1 callers
Function
sort012
* Given an array of size N containing only 0s, 1s, and 2s; sort the array in ascending order. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sort_an_Array_of_0_1_2.cpp:22
↓ 1 callers
Method
sort012
DSA 450/Arrays/4. Sort an array of 0s, 1s and 2s.cpp:6
↓ 1 callers
Function
sortBySetBitCount
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sort_by_Set_Bit_Count.cpp:26
↓ 1 callers
Function
sortStack
to sort stack
All Data Structures/Stack/Sort_stack_using_recursion.cpp:65
↓ 1 callers
Method
sortcolor
(int[] nums)
All Algorithms/SortColors.java:6
↓ 1 callers
Function
sortedInsert
All Data Structures/Stack/Sort_stack_using_recursion.cpp:53
↓ 1 callers
Function
sortedMerge
Link list Node struct Node { int data; struct Node *next; Node(int x) { data = x; next = NULL; } }; */ Function to merge two9 sorte
All Data Structures/Singly_LL/merge_two_sorted_ll.cpp:85
↓ 1 callers
Function
spiralMatrixPrint
DSA 450/Matrix/Spiral traversal of matrix.cpp:7
↓ 1 callers
Function
stockSpan
All Data Structures/Stack/stockspan.cpp:5
↓ 1 callers
Function
subArrayExists
All Data Structures/Arrays/21) subarray with 0 sum.cpp:28
↓ 1 callers
Function
subArrayExists
DSA 450/Arrays/21.Subarray with zero sum.cpp:4
↓ 1 callers
Function
sum
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/Puppy and Sum.cpp:3
↓ 1 callers
Function
sumDiagonal
* Given a square of matrix M of size N*N. You task is to compute and return sum of principal diagonal elements of matrix. Your have to complete the fu
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sum_of_diagonals.c:6
↓ 1 callers
Function
sumOfAP
Function to find sum of series.
Basic Programming/sum_of_ap.cpp:7
↓ 1 callers
Function
sumOfNodes
All Data Structures/TREE/SumOfTreeNodes.cpp:26
↓ 1 callers
Function
sum_Of_All_Marks
All Data Structures/Singly_LL/menu_based_singly_linked_list.cpp:423
↓ 1 callers
Method
summing
(self, nums: list, funct, answer)
Coding Platforms(codechef,codeforces,etc)/LeetCode/Rotate-Function.py:2
↓ 1 callers
Function
swap
All Algorithms/Sorting Algorithm/BubbleSort.cpp:17
↓ 1 callers
Function
swap
All Algorithms/Sorting Algorithm/selection_sort.c:2
↓ 1 callers
Function
swapTriangle
* Given an integer N and a matrix A of dimensions NxN.Swap the values of the triangle above the primary diagonal with the values of the triangle below
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Swapping_Triangle.cpp:22
↓ 1 callers
Function
takeInputLevelWise
All Data Structures/TREE/SumOfTreeNodes.cpp:34
↓ 1 callers
Function
takevectorinput
All Data Structures/Arrays/Cheapest Path CodeChef.cpp:8
↓ 1 callers
Function
ternarySearch
Function to perform Ternary Search
All Algorithms/Searching Algorithm/TernarySearch.cpp:8
↓ 1 callers
Function
test
Coding Platforms(codechef,codeforces,etc)/Codeforces/910C.cpp:37
↓ 1 callers
Function
test
Coding Platforms(codechef,codeforces,etc)/Codeforces/920E.cpp:108
↓ 1 callers
Method
threeWayPartition
Function to partition the array around the range such that array is divided into three parts.
DSA 450/Arrays/30.Three_Way_Partioning.cpp:9
↓ 1 callers
Function
timSort
Tim Sort function
All Algorithms/Sorting Algorithm/tim_sort.cpp:69
↓ 1 callers
Function
timsort
(arr)
All Algorithms/Sorting Algorithm in Python/tim_sort.py:29
↓ 1 callers
Function
top
find top item
All Data Structures/Stack/Sort_stack_using_recursion.cpp:51
↓ 1 callers
Method
topView
Function to return a list of nodes visible from the top view from left to right in Binary Tree.
All Data Structures/TREE/Top_View_Of_BT.cpp:105
↓ 1 callers
Function
topo_sort
All Algorithms/Graph Algorithm/Kahn's_algorithm.cpp:56
↓ 1 callers
Method
topologicalSort
The function to do Topological Sort. It uses recursive topologicalSortUtil()
All Algorithms/Graph Algorithm/topologicalSort.cpp:65
↓ 1 callers
Function
transpose
* Write a program to find the transpose of a square matrix of size N*N. Transpose of a matrix is obtained by changing rows to columns and columns to r
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Transpose_matrix.cpp:22
↓ 1 callers
Function
unionsolve
All Data Structures/Arrays/union and intersection of unsorted array.cpp:12
↓ 1 callers
Function
update
All Data Structures/TREE/fenwickTree_countInversion.cpp:22
↓ 1 callers
Function
update
Coding Platforms(codechef,codeforces,etc)/HackerRank/Pointer.cpp:3
↓ 1 callers
Function
updateRange
Function to update a range of values in segment tree us and eu -> starting and ending indexes of update query ue -> ending index of update query dif
All Data Structures/Segment Tree/Lazy_Propagation.cpp:88
↓ 1 callers
Function
updateRangeUtil
si -> index of current node in segment tree ss and se -> Starting and ending indexes of elements for which current nodes stores sum. us and ue -
All Data Structures/Segment Tree/Lazy_Propagation.cpp:17
↓ 1 callers
Function
update_segtree
All Algorithms/Graph Algorithm/SegmentTree(max-query).cpp:125
↓ 1 callers
Function
vsqmatmul
All Algorithms/Algebraic algorithms/strassen_matrix.c:70
↓ 1 callers
Function
walkTrie
All Data Structures/Trie/LCPtrie.cpp:66
↓ 1 callers
Function
water
All Data Structures/Arrays/TrappingRainWater.cpp:5
↓ 1 callers
Function
wavePrint
All Data Structures/Arrays/WavePrinting.cpp:7
↓ 1 callers
Function
wavesort
All Algorithms/Sorting Algorithm/wave_sort/wave_sort.cpp:11
Method
input_array
All Algorithms/Sorting Algorithm/sorting_techniques.cpp:16
Method
selection_sort_ascen
All Algorithms/Sorting Algorithm/sorting_techniques.cpp:32
Method
selection_sort_descen
All Algorithms/Sorting Algorithm/sorting_techniques.cpp:56
Method
AVL
All Data Structures/TREE/DeletionAVL.cpp:17
Method
BST
All Data Structures/Binary Search Tree/CreateBinarySearchTree.cpp:47
Method
BST
All Data Structures/TREE/BST.cpp:20
Method
BalanceFactor
All Data Structures/TREE/DeletionAVL.cpp:51
Method
BinarySearchTree
()
All Data Structures/Binary Search Tree/BinarySearchTree.java:24
Method
CircularQueue
All Data Structures/Queues/ImplementCircularQueue.cpp:12
Method
DFS
Adj list
Basic Programming/1192-critical-connections-in-a-network.cpp:3
Method
FenwickTree
Coding Platforms(codechef,codeforces,etc)/Codeforces/1228D.cpp:183
Method
Graph
All Data Structures/GRAPHS/kosaraju's_algo.cpp:27
Method
Graph
All Data Structures/GRAPHS/Detect_Cycle_in_Directed_Graph.cpp:11
Method
Graph
All Data Structures/GRAPHS/BFS_Explanation_Graph.cpp:28
Method
Graph
All Algorithms/Graph Algorithm/topologicalSort.cpp:32
Method
GraphL
(int vertices)
All Algorithms/Graph Algorithm/KahnsAlgorithmsCycleDetection.java:61
Method
Height
All Data Structures/TREE/Tree.cpp:20
Method
Height
All Data Structures/TREE/Tree.cpp:106
Method
Height
All Data Structures/TREE/BST.cpp:205
Function
IInorder
All Data Structures/TREE/Tree.c:104
Function
IPreorder
All Data Structures/TREE/Tree.c:82
Method
InPre
All Data Structures/TREE/DeletionAVL.cpp:141
Method
InSucc
All Data Structures/TREE/DeletionAVL.cpp:148
Function
Inorder
All Data Structures/TREE/Tree.c:61
Method
Inorder
All Data Structures/TREE/Tree.cpp:16
Method
Inorder
All Data Structures/TREE/DeletionAVL.cpp:34
Function
Insert
All Data Structures/TREE/BST.C:11
Function
IsEmpty
All Data Structures/Stack/Checkpalindrome.cpp:40
Method
IsMatch
Straightforward extension of the solution for problem #44. (Wildcard Matching) more on: https://github.com/pakosel/leetcode-solutions/tree/master/44.%
Coding Platforms(codechef,codeforces,etc)/LeetCode/RegularExpressionMatching.cs:16
Function
LCA
DSA 450/Binary Search Tree/Lowest_Common_Ancestor_BST.cpp:4
Method
LLRotation
All Data Structures/TREE/DeletionAVL.cpp:61
Method
LRRotation
All Data Structures/TREE/DeletionAVL.cpp:97
Function
LevelOrder
All Data Structures/TREE/Tree.c:127
Method
Levelorder
All Data Structures/TREE/Tree.cpp:18
Method
Levelorder
All Data Structures/TREE/Tree.cpp:86
← previous
next →
801–900 of 2,161, ranked by callers