MCPcopy Create free account

hub / github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA / functions

Functions4,122 in github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA

↓ 1 callersFunctionfindMajority
04. Arrays/majority_element.cpp:8
↓ 1 callersFunctionfindMax
Returns index of the maximum element in arr[0..n-1]
06. Sorting/pancake_sort.cpp:23
↓ 1 callersFunctionfindMax
20. Dynamic Programming/Created painter_partition_dp.cpp:15
↓ 1 callersMethodfindMax
14. Tree/Max and min element in Binary Tree.cpp:132
↓ 1 callersFunctionfindMaxProfit
18. Greedy/Weighted_Job _Scheduling.cpp:73
↓ 1 callersFunctionfindMedianSortedArrays
27. LeetCode Problems/median_of_two_sorted_arrays.cpp:13
↓ 1 callersFunctionfindMedianSortedArrays
27. LeetCode Problems/MedianofTwoSortedArrays.cpp:4
↓ 1 callersMethodfindMin
14. Tree/Max and min element in Binary Tree.cpp:150
↓ 1 callersFunctionfindMinCoins
Function to find the minimum number of coins required to get a total of `target` from set `S`
30. CPP Programs/Coin_change.cpp:8
↓ 1 callersMethodfindMinDiff
18. Greedy/chocolate_distribution.cpp:24
↓ 1 callersMethodfindMinDistance
(int[] distance, boolean[] visitedVertex)
18. Greedy/dijkstra.java:30
↓ 1 callersFunctionfindMinIndex
06. Sorting/SelectionSortusingvectors.cpp:12
↓ 1 callersFunctionfindMinInsertions
20. Dynamic Programming/FormAPalindrome.cpp:31
↓ 1 callersFunctionfindMinimumEdge
18. Greedy/kruskals_msp.cpp:14
↓ 1 callersFunctionfindNode
10. Linked List/DeleteWithoutHeadPtr.cpp:12
↓ 1 callersFunctionfindNode
10. Linked List/cpp/Delete_Without_Head_Pointer.cpp:14
↓ 1 callersFunctionfindOriginalMatrix
Function to find the matrix, A[][] satisfying the given conditions
07. Matrix/Generate_Matrix.cpp:29
↓ 1 callersFunctionfindPath
19. Backtracking/RatInMaze.cpp:42
↓ 1 callersFunctionfindPeak
Find the peak element in the array
30. CPP Programs/peak_element.cpp:6
↓ 1 callersMethodfindPivot
(int[] arr)
05. Searching/RotatedBinarySearch.java:19
↓ 1 callersMethodfindPlatform
Function to find the minimum number of platforms required at the railway station such that no train waits.
18. Greedy/Minimum-platform.cpp:34
↓ 1 callersFunctionfindRepeatedDnaSequences
04. Arrays/repeated_DNA_sequences.cpp:17
↓ 1 callersMethodfindRepeating
Function to find repeated element and its frequency.
05. Searching/CountOnlyRepeated.cpp:11
↓ 1 callersFunctionfindSize
10. Linked List/cpp/Circular_Double_List.cpp:112
↓ 1 callersMethodfindSubArraySum
08. Hashing/Subarrays with sum k.cpp:62
↓ 1 callersFunctionfindSubArrays
Function to print all subarrays in the array which has sum 0
30. CPP Programs/Subarray_with_sum_Zero.cpp:8
↓ 1 callersMethodfindTargetSumWays
(int[] nums, int target)
20. Dynamic Programming/TargetSum.java:8
↓ 1 callersFunctionfindTheDifference
09. String/1_Find the Difference.cpp:47
↓ 1 callersFunctionfindWater
04. Arrays/rain_water_trapping.cpp:7
↓ 1 callersFunctionfind_all_solutions
returns the number of solutions where x is in the range[minx, maxx] and y is in the range[miny, maxy]
01. Mathematics/20_Linear_Diophantine_with_two_variables.cpp:54
↓ 1 callersFunctionfind_any_solution
a*x+b*y=c. returns valid x and y if possible. all solutions are of the form (x0 + k * b / g, y0 - k * b / g)
01. Mathematics/20_Linear_Diophantine_with_two_variables.cpp:27
↓ 1 callersFunctionfind_lca
30. CPP Programs/Distance_Queries.cpp:38
↓ 1 callersFunctionfind_prefix
21. Trie/shortest_unique_prefix.cpp:48
↓ 1 callersFunctionfindmax
15. Binary Search Tree/BST_Traversals_MaxMin_Nodes.cpp:137
↓ 1 callersFunctionfirstMethod
()
03. Recursion/RussianDollRecursion.py:20
↓ 1 callersFunctionfirstMissingPositive
Function to find first Missing Positive Integer
04. Arrays/FirstMissingPositive.cpp:30
↓ 1 callersFunctionfloorSqrt
30. CPP Programs/Square _root _of _a_number.cpp:5
↓ 1 callersMethodfloorSqrt
05. Searching/2_First and last occurrences of x .cpp:45
↓ 1 callersFunctionfloydWarshall
17. Graph/FloydWarshal.cpp:6
↓ 1 callersFunctionfloyd_warshall
17. Graph/floyd_warshall.cpp:9
↓ 1 callersFunctionfold
10. Linked List/cpp/FoldLL.cpp:79
↓ 1 callersFunctionford
17. Graph/BellmanFord.cpp:5
↓ 1 callersFunctionfourSum
04. Arrays/16_4Sum.cpp:36
↓ 1 callersFunctionfourthMethod
()
03. Recursion/RussianDollRecursion.py:32
↓ 1 callersFunctionfractionalKnapsack
18. Greedy/Fractional_Knapsack.cpp:42
↓ 1 callersFunctionfractional_knapsack
(value, weight, capacity)
18. Greedy/Fractional Knapsack.py:1
↓ 1 callersMethodfrequencyCount
Function to count the frequency of all elements from 1 to N in the array.
04. Arrays/4_Third largest element.cpp:36
↓ 1 callersMethodfrequencyCount
Function to count the frequency of all elements from 1 to N in the array.
04. Arrays/7_Frequencies of Limited Range Array Elements.cpp:60
↓ 1 callersFunctionfull
Function to check if the queue is full */
30. CPP Programs/Reversing Queue.cpp:14
↓ 1 callersFunctiongcd
01. Mathematics/euclidproblem.cpp:8
↓ 1 callersFunctiongcd
01. Mathematics/20_gcd.cpp:10
↓ 1 callersFunctiongcd
30. CPP Programs/airline_restriction.cpp:41
↓ 1 callersFunctiongcd
29. Codeforces Problems/B_Omkar_and_Heavenly_Tree.cpp:40
↓ 1 callersFunctiongcd
06. Sorting/collecting_numbers.cpp:44
↓ 1 callersFunctiongcd
06. Sorting/Maximum_subarray_sum.cpp:21
↓ 1 callersFunctiongcd
06. Sorting/missing_coin_sum.cpp:44
↓ 1 callersFunctiongcd
28. Codechef Problems/Dish-Owner.cpp:27
↓ 1 callersFunctiongcd
Returns GCD(a,b) by Euclid's algorithm.
24. Cryptography/RSA_Enc_Dec.py:11
↓ 1 callersFunctiongen_primes
Generate primes up to N
33. Python Programs/prime_number.py:14
↓ 1 callersFunctiongenerateHTML
(results)
37. Projects/Mini Project/index.js:23
↓ 1 callersFunctiongenerateKey
This function generates the key in a cyclic manner until it's length isi'nt equal to the length of original text
24. Cryptography/vigenere_cipher.cpp:8
↓ 1 callersFunctiongenerateParenthesis
27. LeetCode Problems/GenerateParenthesis.cpp:49
↓ 1 callersFunctiongetAnomaliesCount
30. CPP Programs/NumberOfAnomaliesInAnArray.cpp:3
↓ 1 callersMethodgetAt
(int idx)
10. Linked List/java/middle of linked list.java:71
↓ 1 callersFunctiongetCentroid
01. Mathematics/centroid-decomposition.cpp:45
↓ 1 callersFunctiongetConcatenation
04. Arrays/17_ Concatenation of Array.cpp:41
↓ 1 callersFunctiongetDeepestNode
(rootNode)
14. Tree/BinaryTree.py:101
↓ 1 callersFunctiongetFortune
30. CPP Programs/fortune-teller.cpp:140
↓ 1 callersFunctiongetHeight
36. C Programs/Height of a Binary Tree.c:55
↓ 1 callersMethodgetLast
()
10. Linked List/java/middle of linked list.java:62
↓ 1 callersMethodgetLeftView
(TreeNode root)
14. Tree/Left_View_Of_Binary_Tree.java:16
↓ 1 callersFunctiongetMax
A utility function to get maximum value in arr[]
06. Sorting/Radix_sort.cpp:6
↓ 1 callersFunctiongetMax
04. Arrays/RadixSort.cpp:7
↓ 1 callersMethodgetMax
(int arr[], int n)
06. Sorting/Radix_sort.java:8
↓ 1 callersFunctiongetMedian
This function returns median of ar1[] and ar2[]. Assumptions in this function: Both ar1[] and ar2[] are sorted arrays Both have n elements */
30. CPP Programs/Median of two sorted array.cpp:12
↓ 1 callersMethodgetMiddle
10. Linked List/cpp/MiddleElementOfLinkedList.cpp:24
↓ 1 callersMethodgetMinDiff
04. Arrays/minimise-the-heights-II.cpp:17
↓ 1 callersMethodgetMinimumKey
(self, weight, visited)
17. Graph/Prim's-Algorithm.py:26
↓ 1 callersMethodgetSmallestDivNum
01. Mathematics/16_Smallestdivisiblenumber.cpp:13
↓ 1 callersFunctiongetWord
37. Projects/hangmangamebysashwat.c:144
↓ 1 callersMethodget_data
01. Mathematics/chinese_remainder.cpp:24
↓ 1 callersMethodget_max_depth
14. Tree/BinaryTreeDiagram.cpp:34
↓ 1 callersFunctionget_max_from_list
10. Linked List/cpp/LinkedListOperations.cpp:131
↓ 1 callersFunctionget_row
07. Matrix/Searching_In_A_Sorted_Matrix.cpp:21
↓ 1 callersFunctiongnomesort
30. CPP Programs/gnomesort.cpp:5
↓ 1 callersFunctiongnomesort
06. Sorting/gnomesort.cpp:5
↓ 1 callersFunctiongood
01. Mathematics/binarygame.cpp:10
↓ 1 callersFunctiongood
01. Mathematics/cows.cpp:6
↓ 1 callersFunctiongood
01. Mathematics/get together.cpp:8
↓ 1 callersFunctiongood
01. Mathematics/childrenholiday.cpp:12
↓ 1 callersFunctiongood
01. Mathematics/veryeasytask.cpp:5
↓ 1 callersFunctiongood
01. Mathematics/maxavg.cpp:8
↓ 1 callersFunctiongood
01. Mathematics/equation.cpp:5
↓ 1 callersMethodgraphColoring
(boolean[][] graph, int m, int i, int[] color)
19. Backtracking/MColoringProblem.java:36
↓ 1 callersFunctiongreatest_common_divisor
>>> greatest_common_divisor(7,5) 1 Note : In number theory, two integers a and b are said to be relatively prime, mutually prime
25. Blockchain/modular_division.py:122
↓ 1 callersFunctiongroupAnagrams
04. Arrays/Group_Anagrams.cpp:34
↓ 1 callersFunctionhangman
()
33. Python Programs/Hangman.py:2
↓ 1 callersFunctionheapSort
06. Sorting/HeapSort.cpp:27
↓ 1 callersFunctionheapSort
(arr)
06. Sorting/Heap-Sort.py:12
↓ 1 callersFunctionheapSort
06. Sorting/heapsort.cpp:27
← previousnext →1,101–1,200 of 4,122, ranked by callers