Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Prince-1501/Hello_world-Competiitve-Programming
/ functions
Functions
340 in github.com/Prince-1501/Hello_world-Competiitve-Programming
⨍
Functions
340
◇
Types & classes
123
Method
convert
Leetcode/Graph/Surrounded Regions.cpp:6
Method
copyRandomList
Leetcode/linkedlist/Copy List with Random Pointer.cpp:22
Method
countConsistentStrings
Leetcode/Count the Number of Consistent Strings.cpp:5
Method
countSubset
Leetcode/Recursion/Target Sum.cpp:6
Method
countSubset
1000000007
Leetcode/Recursion/Perfect Sum Problem.cpp:11
Method
customSortString
Leetcode/Hashing/Custom Sort String.cpp:5
Method
cycle
Leetcode/Graph/Detect cycle in a directed graph.cpp:7
Method
deleteDuplicates
Leetcode/linkedlist/Remove Duplicates from Sorted List.cpp:5
Method
deleteMid
Leetcode/Recursion/Delete middle element of a stack.cpp:18
Method
deleteMidHelper
Leetcode/Recursion/Delete middle element of a stack.cpp:8
Method
deleteNode
Leetcode/linkedlist/Delete Node in a Linked List.cpp:5
Method
detectCycle
Leetcode/linkedlist/Linked List Cycle II.cpp:13
Method
dfs
Leetcode/Graph/All Paths From Source to Target.cpp:6
Method
dfs
Leetcode/Graph/Minimum Time to Collect All Apples in a Tree.cpp:6
Method
dfs
Leetcode/Graph/Number of Provinces.cpp:6
Method
dfs
Leetcode/Graph/Max Area of Island.cpp:13
Method
dfs
Leetcode/Graph/Time Needed to Inform All Employees.cpp:10
Method
dfs
Leetcode/Graph/Number of Enclaves.cpp:28
Method
dfs
Leetcode/Graph/Number of closed Islands.cpp:14
Method
dfs
Leetcode/Graph/Surrounded Regions.cpp:29
Method
diameterOfBinaryTree
Leetcode/Tree/Diameter of Binary Tree.cpp:32
Method
divisorGame
Leetcode/Recursion/Divisor Game.cpp:5
Method
evalRPN
Leetcode/stack/Evaluate Reverse Polish Notation.cpp:5
Method
eventualSafeNodes
Leetcode/Graph/Find Eventual Safe States.cpp:26
Method
factorial
Leetcode/Recursion/Factorial.cpp:5
Method
fib
Leetcode/Recursion/Fibonacci Number.cpp:5
Method
fillLPS
Leetcode/string/Find the Index of the First Occurrence in a String.cpp:7
Method
findCircleNum
Leetcode/Graph/Number of Provinces.cpp:30
Method
findJudge
Leetcode/Graph/Find the Town Judge.cpp:5
Function
findMedian
arr : given array with size n brr : given array with size m
Leetcode/Median of Two sorted arrays.cpp:6
Method
findPath
Leetcode/Tree/Lowest Common Ancestor of a Binary Tree.cpp:19
Method
findTargetSumWays
Leetcode/Recursion/Target Sum.cpp:26
Method
firstNonRepeating
Leetcode/Hashing/Non-Repeating Element.cpp:6
Method
firstRepeated
Function to return the position of the first repeating element.
Leetcode/Hashing/First Repeating Element.cpp:6
Method
floodFill
Leetcode/Graph/Flood Fill.cpp:31
Method
floodFillRec
Leetcode/Graph/Flood Fill.cpp:14
Method
frequencySort
Leetcode/Hashing/Sort Array by Increasing Frequency.cpp:5
Method
fun
Leetcode/Recursion/House Robber.cpp:6
Method
get
Leetcode/Hashing/LFU Cache.cpp:36
Method
getIntersectionNode
Leetcode/linkedlist/Intersection of Two Linked Lists.cpp:13
Method
getMin
Leetcode/stack/Min Stack.cpp:32
Method
groupAnagrams
Leetcode/Hashing/Group Anagrams.cpp:5
Method
hasArrayTwoCandidates
Function to check if array has 2 elements whose sum is equal to the given value
Leetcode/Hashing/Key Pair.cpp:7
Method
hasCycle
Leetcode/linked-list-cycle.cpp:14
Method
height
Leetcode/Tree/Diameter of Binary Tree.cpp:19
Method
height
Leetcode/Tree/Balanced Binary Tree.cpp:17
Method
inorder
Leetcode/Tree/same Tree.cpp:18
Method
inorder
Leetcode/Tree/Subtree of Another Tree.cpp:38
Method
inorderTraversal
Leetcode/Tree/Binary Tree Inorder Traversal.cpp:26
Method
inorderUtil
Leetcode/Tree/Balanced Binary Tree.cpp:24
Function
interchangeRows
Leetcode/Interchanging the rows of a Matrix.cpp:4
Method
invertTree
Leetcode/Tree/Invert Binary Tree.cpp:16
Method
isBalanced
Leetcode/Tree/Balanced Binary Tree.cpp:38
Method
isCyclic
Leetcode/Graph/Detect cycle in a directed graph.cpp:25
Method
isPalindrome
Leetcode/linkedlist/Palindrome Linked List.cpp:15
Method
isSameTree
Leetcode/Tree/same Tree.cpp:36
Method
isSubsetSum
Leetcode/Recursion/Subset Sum Problem.cpp:17
Method
isSubtree
Leetcode/Tree/Subtree of Another Tree.cpp:49
Function
isSumProperty
Leetcode/Tree/Children Sum Parent.cpp:3
Method
isSymmetric
Leetcode/Tree/Symmetric Tree.cpp:34
Method
isValid
Leetcode/Graph/Flood Fill.cpp:6
Method
isValid
Leetcode/Graph/Max Area of Island.cpp:6
Method
isValid
Leetcode/Graph/Number of Enclaves.cpp:21
Method
isValid
Leetcode/Graph/Number of closed Islands.cpp:7
Method
isValid
Leetcode/Graph/Rotting Oranges.cpp:7
Method
isValid
Leetcode/Graph/Surrounded Regions.cpp:22
Method
isValid
Leetcode/Graph/Steps by Knight.cpp:8
Method
isValid
Leetcode/Graph/Number of Islands.cpp:7
Method
isValid
Leetcode/stack/Valid Parentheses.cpp:5
Method
knapSack
Function to return max value that can be put in knapsack of capacity W.
Leetcode/Recursion/0-1 Knapsack Problem Top down.cpp:7
Method
largest
Leetcode/Recursion/Largest Element in Array.cpp:6
Method
largestRectangleArea
Leetcode/stack/Largest Rectangle in Histogram.cpp:39
Function
levelOrder
Leetcode/Tree/Level Order Traversal.cpp:3
Method
lowestCommonAncestor
Leetcode/Tree/Lowest Common Ancestor of a Binary Tree.cpp:33
Function
main
54_print_subset_of_size_k_of_array.cpp:15
Function
main
Lecture - 15.cpp:13
Function
main
42_codechef_the_great_run.cpp:12
Function
main
Lecture - 21.cpp:4
Function
main
Lecture - 18.cpp:3
Function
main
39_codechef_chef_and_Eid.cpp:14
Function
main
49_two_buttons_codeforces.cpp:14
Function
main
53_codeforces_MUH_and_sticks.cpp:12
Function
main
41_codechef_chef_and_glove.cpp:13
Function
main
chef and string.cpp:14
Function
main
52_codechef_flatland.cpp:12
Function
main
Lecture - 32.cpp:11
Function
main
Lecture - 22.cpp:5
Function
main
Lecture - 27.cpp:11
Function
main
Kadane's_algorithm.cpp:13
Function
main
Chef and Price Control.cpp:13
Function
main
46_drink_codeforce.cpp:11
Function
main
58_codechef_phone_prices.cpp:14
Function
main
40_codechef_chef_judges_competition.cpp:14
Function
main
43_codechef_attendance.cpp:12
Function
main
36_codechef_Encoding_message.cpp:15
Function
main
57_codechef_A-books.cpp:11
Function
main
Lecture - 24.cpp:38
Function
main
51_eleven_codeforces.cpp:15
Function
main
44_codechef_making_a_meal.cpp:14
Function
main
38_codechef_fits_square_in_triangle.cpp:11
← previous
next →
101–200 of 340, ranked by callers