MCPcopy Create free account

hub / github.com/anupam-kumar-krishnan/Competitive_Programming / functions

Functions2,161 in github.com/anupam-kumar-krishnan/Competitive_Programming

↓ 1 callersFunctionsolve
* 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 callersFunctionsolve
* 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 callersFunctionsolve
* 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 callersFunctionsolve
* 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 callersFunctionsolve
* 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 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Cube_root_number.cpp:32
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Rearranging_array.cpp:31
↓ 1 callersFunctionsolve
* Split the given string into Alphabets and numbers */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Split_Strings.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Print_n_number_without_Loop.cpp:28
↓ 1 callersFunctionsolve
* Given a string. Count the number of Camel Case characters in it. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Count_camel.cpp:22
↓ 1 callersFunctionsolve
* 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 callersFunctionsolve
* 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 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/First_repeating_element.cpp:34
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Find_Min_Max_in_Array.cpp:26
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Array_subset.cpp:33
↓ 1 callersFunctionsolve
* 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 callersFunctionsolve
* 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 callersFunctionsolve
* 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 callersFunctionsolve
* Find Factorial of a given number N. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Small_Factorial.cpp:22
↓ 1 callersFunctionsolve_test
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/buying_new_tables.cpp:5
↓ 1 callersFunctionsort012
All Data Structures/Arrays/4) Sort an array of 0s,1s and 2s.cpp:27
↓ 1 callersFunctionsort012
* 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 callersMethodsort012
DSA 450/Arrays/4. Sort an array of 0s, 1s and 2s.cpp:6
↓ 1 callersFunctionsortBySetBitCount
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sort_by_Set_Bit_Count.cpp:26
↓ 1 callersFunctionsortStack
to sort stack
All Data Structures/Stack/Sort_stack_using_recursion.cpp:65
↓ 1 callersMethodsortcolor
(int[] nums)
All Algorithms/SortColors.java:6
↓ 1 callersFunctionsortedInsert
All Data Structures/Stack/Sort_stack_using_recursion.cpp:53
↓ 1 callersFunctionsortedMerge
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 callersFunctionspiralMatrixPrint
DSA 450/Matrix/Spiral traversal of matrix.cpp:7
↓ 1 callersFunctionstockSpan
All Data Structures/Stack/stockspan.cpp:5
↓ 1 callersFunctionsubArrayExists
All Data Structures/Arrays/21) subarray with 0 sum.cpp:28
↓ 1 callersFunctionsubArrayExists
DSA 450/Arrays/21.Subarray with zero sum.cpp:4
↓ 1 callersFunctionsum
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/Puppy and Sum.cpp:3
↓ 1 callersFunctionsumDiagonal
* 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 callersFunctionsumOfAP
Function to find sum of series.
Basic Programming/sum_of_ap.cpp:7
↓ 1 callersFunctionsumOfNodes
All Data Structures/TREE/SumOfTreeNodes.cpp:26
↓ 1 callersFunctionsum_Of_All_Marks
All Data Structures/Singly_LL/menu_based_singly_linked_list.cpp:423
↓ 1 callersMethodsumming
(self, nums: list, funct, answer)
Coding Platforms(codechef,codeforces,etc)/LeetCode/Rotate-Function.py:2
↓ 1 callersFunctionswap
All Algorithms/Sorting Algorithm/BubbleSort.cpp:17
↓ 1 callersFunctionswap
All Algorithms/Sorting Algorithm/selection_sort.c:2
↓ 1 callersFunctionswapTriangle
* 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 callersFunctiontakeInputLevelWise
All Data Structures/TREE/SumOfTreeNodes.cpp:34
↓ 1 callersFunctiontakevectorinput
All Data Structures/Arrays/Cheapest Path CodeChef.cpp:8
↓ 1 callersFunctionternarySearch
Function to perform Ternary Search
All Algorithms/Searching Algorithm/TernarySearch.cpp:8
↓ 1 callersFunctiontest
Coding Platforms(codechef,codeforces,etc)/Codeforces/910C.cpp:37
↓ 1 callersFunctiontest
Coding Platforms(codechef,codeforces,etc)/Codeforces/920E.cpp:108
↓ 1 callersMethodthreeWayPartition
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 callersFunctiontimSort
Tim Sort function
All Algorithms/Sorting Algorithm/tim_sort.cpp:69
↓ 1 callersFunctiontimsort
(arr)
All Algorithms/Sorting Algorithm in Python/tim_sort.py:29
↓ 1 callersFunctiontop
find top item
All Data Structures/Stack/Sort_stack_using_recursion.cpp:51
↓ 1 callersMethodtopView
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 callersFunctiontopo_sort
All Algorithms/Graph Algorithm/Kahn's_algorithm.cpp:56
↓ 1 callersMethodtopologicalSort
The function to do Topological Sort. It uses recursive topologicalSortUtil()
All Algorithms/Graph Algorithm/topologicalSort.cpp:65
↓ 1 callersFunctiontranspose
* 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 callersFunctionunionsolve
All Data Structures/Arrays/union and intersection of unsorted array.cpp:12
↓ 1 callersFunctionupdate
All Data Structures/TREE/fenwickTree_countInversion.cpp:22
↓ 1 callersFunctionupdate
Coding Platforms(codechef,codeforces,etc)/HackerRank/Pointer.cpp:3
↓ 1 callersFunctionupdateRange
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 callersFunctionupdateRangeUtil
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 callersFunctionupdate_segtree
All Algorithms/Graph Algorithm/SegmentTree(max-query).cpp:125
↓ 1 callersFunctionvsqmatmul
All Algorithms/Algebraic algorithms/strassen_matrix.c:70
↓ 1 callersFunctionwalkTrie
All Data Structures/Trie/LCPtrie.cpp:66
↓ 1 callersFunctionwater
All Data Structures/Arrays/TrappingRainWater.cpp:5
↓ 1 callersFunctionwavePrint
All Data Structures/Arrays/WavePrinting.cpp:7
↓ 1 callersFunctionwavesort
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
MethodAVL
All Data Structures/TREE/DeletionAVL.cpp:17
MethodBST
All Data Structures/Binary Search Tree/CreateBinarySearchTree.cpp:47
MethodBST
All Data Structures/TREE/BST.cpp:20
MethodBalanceFactor
All Data Structures/TREE/DeletionAVL.cpp:51
MethodBinarySearchTree
()
All Data Structures/Binary Search Tree/BinarySearchTree.java:24
MethodCircularQueue
All Data Structures/Queues/ImplementCircularQueue.cpp:12
MethodDFS
Adj list
Basic Programming/1192-critical-connections-in-a-network.cpp:3
MethodFenwickTree
Coding Platforms(codechef,codeforces,etc)/Codeforces/1228D.cpp:183
MethodGraph
All Data Structures/GRAPHS/kosaraju's_algo.cpp:27
MethodGraph
All Data Structures/GRAPHS/Detect_Cycle_in_Directed_Graph.cpp:11
MethodGraph
All Data Structures/GRAPHS/BFS_Explanation_Graph.cpp:28
MethodGraph
All Algorithms/Graph Algorithm/topologicalSort.cpp:32
MethodGraphL
(int vertices)
All Algorithms/Graph Algorithm/KahnsAlgorithmsCycleDetection.java:61
MethodHeight
All Data Structures/TREE/Tree.cpp:20
MethodHeight
All Data Structures/TREE/Tree.cpp:106
MethodHeight
All Data Structures/TREE/BST.cpp:205
FunctionIInorder
All Data Structures/TREE/Tree.c:104
FunctionIPreorder
All Data Structures/TREE/Tree.c:82
MethodInPre
All Data Structures/TREE/DeletionAVL.cpp:141
MethodInSucc
All Data Structures/TREE/DeletionAVL.cpp:148
FunctionInorder
All Data Structures/TREE/Tree.c:61
MethodInorder
All Data Structures/TREE/Tree.cpp:16
MethodInorder
All Data Structures/TREE/DeletionAVL.cpp:34
FunctionInsert
All Data Structures/TREE/BST.C:11
FunctionIsEmpty
All Data Structures/Stack/Checkpalindrome.cpp:40
MethodIsMatch
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
FunctionLCA
DSA 450/Binary Search Tree/Lowest_Common_Ancestor_BST.cpp:4
MethodLLRotation
All Data Structures/TREE/DeletionAVL.cpp:61
MethodLRRotation
All Data Structures/TREE/DeletionAVL.cpp:97
FunctionLevelOrder
All Data Structures/TREE/Tree.c:127
MethodLevelorder
All Data Structures/TREE/Tree.cpp:18
MethodLevelorder
All Data Structures/TREE/Tree.cpp:86
← previousnext →801–900 of 2,161, ranked by callers