Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA
/ functions
Functions
4,122 in github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA
⨍
Functions
4,122
◇
Types & classes
941
↳
Endpoints
3
↓ 1 callers
Function
findMajority
04. Arrays/majority_element.cpp:8
↓ 1 callers
Function
findMax
Returns index of the maximum element in arr[0..n-1]
06. Sorting/pancake_sort.cpp:23
↓ 1 callers
Function
findMax
20. Dynamic Programming/Created painter_partition_dp.cpp:15
↓ 1 callers
Method
findMax
14. Tree/Max and min element in Binary Tree.cpp:132
↓ 1 callers
Function
findMaxProfit
18. Greedy/Weighted_Job _Scheduling.cpp:73
↓ 1 callers
Function
findMedianSortedArrays
27. LeetCode Problems/median_of_two_sorted_arrays.cpp:13
↓ 1 callers
Function
findMedianSortedArrays
27. LeetCode Problems/MedianofTwoSortedArrays.cpp:4
↓ 1 callers
Method
findMin
14. Tree/Max and min element in Binary Tree.cpp:150
↓ 1 callers
Function
findMinCoins
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 callers
Method
findMinDiff
18. Greedy/chocolate_distribution.cpp:24
↓ 1 callers
Method
findMinDistance
(int[] distance, boolean[] visitedVertex)
18. Greedy/dijkstra.java:30
↓ 1 callers
Function
findMinIndex
06. Sorting/SelectionSortusingvectors.cpp:12
↓ 1 callers
Function
findMinInsertions
20. Dynamic Programming/FormAPalindrome.cpp:31
↓ 1 callers
Function
findMinimumEdge
18. Greedy/kruskals_msp.cpp:14
↓ 1 callers
Function
findNode
10. Linked List/DeleteWithoutHeadPtr.cpp:12
↓ 1 callers
Function
findNode
10. Linked List/cpp/Delete_Without_Head_Pointer.cpp:14
↓ 1 callers
Function
findOriginalMatrix
Function to find the matrix, A[][] satisfying the given conditions
07. Matrix/Generate_Matrix.cpp:29
↓ 1 callers
Function
findPath
19. Backtracking/RatInMaze.cpp:42
↓ 1 callers
Function
findPeak
Find the peak element in the array
30. CPP Programs/peak_element.cpp:6
↓ 1 callers
Method
findPivot
(int[] arr)
05. Searching/RotatedBinarySearch.java:19
↓ 1 callers
Method
findPlatform
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 callers
Function
findRepeatedDnaSequences
04. Arrays/repeated_DNA_sequences.cpp:17
↓ 1 callers
Method
findRepeating
Function to find repeated element and its frequency.
05. Searching/CountOnlyRepeated.cpp:11
↓ 1 callers
Function
findSize
10. Linked List/cpp/Circular_Double_List.cpp:112
↓ 1 callers
Method
findSubArraySum
08. Hashing/Subarrays with sum k.cpp:62
↓ 1 callers
Function
findSubArrays
Function to print all subarrays in the array which has sum 0
30. CPP Programs/Subarray_with_sum_Zero.cpp:8
↓ 1 callers
Method
findTargetSumWays
(int[] nums, int target)
20. Dynamic Programming/TargetSum.java:8
↓ 1 callers
Function
findTheDifference
09. String/1_Find the Difference.cpp:47
↓ 1 callers
Function
findWater
04. Arrays/rain_water_trapping.cpp:7
↓ 1 callers
Function
find_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 callers
Function
find_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 callers
Function
find_lca
30. CPP Programs/Distance_Queries.cpp:38
↓ 1 callers
Function
find_prefix
21. Trie/shortest_unique_prefix.cpp:48
↓ 1 callers
Function
findmax
15. Binary Search Tree/BST_Traversals_MaxMin_Nodes.cpp:137
↓ 1 callers
Function
firstMethod
()
03. Recursion/RussianDollRecursion.py:20
↓ 1 callers
Function
firstMissingPositive
Function to find first Missing Positive Integer
04. Arrays/FirstMissingPositive.cpp:30
↓ 1 callers
Function
floorSqrt
30. CPP Programs/Square _root _of _a_number.cpp:5
↓ 1 callers
Method
floorSqrt
05. Searching/2_First and last occurrences of x .cpp:45
↓ 1 callers
Function
floydWarshall
17. Graph/FloydWarshal.cpp:6
↓ 1 callers
Function
floyd_warshall
17. Graph/floyd_warshall.cpp:9
↓ 1 callers
Function
fold
10. Linked List/cpp/FoldLL.cpp:79
↓ 1 callers
Function
ford
17. Graph/BellmanFord.cpp:5
↓ 1 callers
Function
fourSum
04. Arrays/16_4Sum.cpp:36
↓ 1 callers
Function
fourthMethod
()
03. Recursion/RussianDollRecursion.py:32
↓ 1 callers
Function
fractionalKnapsack
18. Greedy/Fractional_Knapsack.cpp:42
↓ 1 callers
Function
fractional_knapsack
(value, weight, capacity)
18. Greedy/Fractional Knapsack.py:1
↓ 1 callers
Method
frequencyCount
Function to count the frequency of all elements from 1 to N in the array.
04. Arrays/4_Third largest element.cpp:36
↓ 1 callers
Method
frequencyCount
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 callers
Function
full
Function to check if the queue is full */
30. CPP Programs/Reversing Queue.cpp:14
↓ 1 callers
Function
gcd
01. Mathematics/euclidproblem.cpp:8
↓ 1 callers
Function
gcd
01. Mathematics/20_gcd.cpp:10
↓ 1 callers
Function
gcd
30. CPP Programs/airline_restriction.cpp:41
↓ 1 callers
Function
gcd
29. Codeforces Problems/B_Omkar_and_Heavenly_Tree.cpp:40
↓ 1 callers
Function
gcd
06. Sorting/collecting_numbers.cpp:44
↓ 1 callers
Function
gcd
06. Sorting/Maximum_subarray_sum.cpp:21
↓ 1 callers
Function
gcd
06. Sorting/missing_coin_sum.cpp:44
↓ 1 callers
Function
gcd
28. Codechef Problems/Dish-Owner.cpp:27
↓ 1 callers
Function
gcd
Returns GCD(a,b) by Euclid's algorithm.
24. Cryptography/RSA_Enc_Dec.py:11
↓ 1 callers
Function
gen_primes
Generate primes up to N
33. Python Programs/prime_number.py:14
↓ 1 callers
Function
generateHTML
(results)
37. Projects/Mini Project/index.js:23
↓ 1 callers
Function
generateKey
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 callers
Function
generateParenthesis
27. LeetCode Problems/GenerateParenthesis.cpp:49
↓ 1 callers
Function
getAnomaliesCount
30. CPP Programs/NumberOfAnomaliesInAnArray.cpp:3
↓ 1 callers
Method
getAt
(int idx)
10. Linked List/java/middle of linked list.java:71
↓ 1 callers
Function
getCentroid
01. Mathematics/centroid-decomposition.cpp:45
↓ 1 callers
Function
getConcatenation
04. Arrays/17_ Concatenation of Array.cpp:41
↓ 1 callers
Function
getDeepestNode
(rootNode)
14. Tree/BinaryTree.py:101
↓ 1 callers
Function
getFortune
30. CPP Programs/fortune-teller.cpp:140
↓ 1 callers
Function
getHeight
36. C Programs/Height of a Binary Tree.c:55
↓ 1 callers
Method
getLast
()
10. Linked List/java/middle of linked list.java:62
↓ 1 callers
Method
getLeftView
(TreeNode root)
14. Tree/Left_View_Of_Binary_Tree.java:16
↓ 1 callers
Function
getMax
A utility function to get maximum value in arr[]
06. Sorting/Radix_sort.cpp:6
↓ 1 callers
Function
getMax
04. Arrays/RadixSort.cpp:7
↓ 1 callers
Method
getMax
(int arr[], int n)
06. Sorting/Radix_sort.java:8
↓ 1 callers
Function
getMedian
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 callers
Method
getMiddle
10. Linked List/cpp/MiddleElementOfLinkedList.cpp:24
↓ 1 callers
Method
getMinDiff
04. Arrays/minimise-the-heights-II.cpp:17
↓ 1 callers
Method
getMinimumKey
(self, weight, visited)
17. Graph/Prim's-Algorithm.py:26
↓ 1 callers
Method
getSmallestDivNum
01. Mathematics/16_Smallestdivisiblenumber.cpp:13
↓ 1 callers
Function
getWord
37. Projects/hangmangamebysashwat.c:144
↓ 1 callers
Method
get_data
01. Mathematics/chinese_remainder.cpp:24
↓ 1 callers
Method
get_max_depth
14. Tree/BinaryTreeDiagram.cpp:34
↓ 1 callers
Function
get_max_from_list
10. Linked List/cpp/LinkedListOperations.cpp:131
↓ 1 callers
Function
get_row
07. Matrix/Searching_In_A_Sorted_Matrix.cpp:21
↓ 1 callers
Function
gnomesort
30. CPP Programs/gnomesort.cpp:5
↓ 1 callers
Function
gnomesort
06. Sorting/gnomesort.cpp:5
↓ 1 callers
Function
good
01. Mathematics/binarygame.cpp:10
↓ 1 callers
Function
good
01. Mathematics/cows.cpp:6
↓ 1 callers
Function
good
01. Mathematics/get together.cpp:8
↓ 1 callers
Function
good
01. Mathematics/childrenholiday.cpp:12
↓ 1 callers
Function
good
01. Mathematics/veryeasytask.cpp:5
↓ 1 callers
Function
good
01. Mathematics/maxavg.cpp:8
↓ 1 callers
Function
good
01. Mathematics/equation.cpp:5
↓ 1 callers
Method
graphColoring
(boolean[][] graph, int m, int i, int[] color)
19. Backtracking/MColoringProblem.java:36
↓ 1 callers
Function
greatest_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 callers
Function
groupAnagrams
04. Arrays/Group_Anagrams.cpp:34
↓ 1 callers
Function
hangman
()
33. Python Programs/Hangman.py:2
↓ 1 callers
Function
heapSort
06. Sorting/HeapSort.cpp:27
↓ 1 callers
Function
heapSort
(arr)
06. Sorting/Heap-Sort.py:12
↓ 1 callers
Function
heapSort
06. Sorting/heapsort.cpp:27
← previous
next →
1,101–1,200 of 4,122, ranked by callers