MCPcopy Create free account

hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / functions

Functions2,762 in github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice

Methodans
Leetcode/C++/binary_tree_from_preorder_and_inorder.cpp:39
Functionantirotate
the main part of the whole code starts now
Algorithms/rotate90.cpp:54
Methodarray_to_tree
(left, right)
Leetcode/Python/binary_tree_from_inorder_and_preorder.py:28
Methodbfscycle
Data Structures/Graph/C++/Detect Cycle In Undirected Graph.cpp:6
Functionbinpow
Codechef/C++/Valid Paths (VPATH).cpp:30
MethodbreakPalindrome
Leetcode/C++/leetcode.cpp:7
Functionbruh
Codechef/C++/BugCrush 2 Question 1 (BUGC201).cpp:4
Functionbubble_sort
Algorithms/Searching and Sorting/C++/sorting.cpp:4
MethodbuildTree
(self, preorder: List[int], inorder: List[int])
Leetcode/Python/binary_tree_from_inorder_and_preorder.py:26
MethodbuildTree
Leetcode/C++/binary_tree_from_preorder_and_inorder.cpp:21
Methodcal
Leetcode/C++/Deepest Leaves Sum.cpp:45
Methodcalculate
Leetcode/C++/permutations.cpp:24
MethodcanCompleteCircuit
Leetcode/C++/Gas Station greedy.cpp:24
MethodcanJump
Leetcode/C++/55 jump game.cpp:31
MethodcanPartition
(int[] nums)
Algorithms/Dynamic Problems/Java/Equal_sum_Partition.java:17
MethodcheckCycle
Gfg/C++/Detect cycle in an undirected graph.cpp:16
MethodcheckInclusion
Leetcode/C++/Permutation in string.cpp:20
FunctionclimbStairs
Leetcode/C++/Climbing stairs.cpp:20
MethodcloneGraph
Leetcode/C++/Clone graph.cpp:44
Functioncmp
Algorithms/Graph/C++/DFSGraphValidation.cpp:10
Functioncmp
Leetcode/C++/LargestNumber_Leetcode.cpp:5
Methodcmp
Algorithms/Miscellaneous/C++/contamenatedwords.cpp:37
Functioncnp
cnp() is a comparison function used in sort function to sort the items in a definite manner. */
Algorithms/Greedy Algorithms/C++/Fractional_Knapsack_in_C++.cpp:51
MethodcombinationSum2
Leetcode/Combination Sum2.cpp:14
MethodcombinationSum4
Leetcode/C++/Combination Sum IV Solution.cpp:3
Functioncomp
Atcoder dp/X - Tower.cpp:22
Methodcomp
Gfg/C++/Job Sequencing Problem.cpp:29
Methodcomp
Gfg/C++/N meetings in one room.cpp:10
Methodcompare
(ItemValue o1, ItemValue o2)
Algorithms/Greedy Algorithms/Java/Fractional Knapsack Problem.java:19
Methodcompare
Leetcode/C++/FindAndReplace.cpp:34
Methodcompare
(String o1, String o2)
Hackerank/Java/bigdecimal.java:17
Methodcompare
Gfg/C++/sort_by_set_bit.cpp:29
Methodcompare
(Node n1,Node n2)
Gfg/Java/Huffman Encoding.java:27
FunctioncompareX
Needed to sort array of points according to X coordinate
Algorithms/Divide and Conquer/C++/Closest Pair of Points using Divide and Conquer algorithm.cpp:20
FunctioncompareY
Needed to sort array of points according to Y coordinate
Algorithms/Divide and Conquer/C++/Closest Pair of Points using Divide and Conquer algorithm.cpp:27
Functioncomparison
This function is used for sorting all jobs according to profit
Algorithms/Greedy Algorithms/C++/Job Sequencing Problem.cpp:16
Functioncomparison
This Function is used to sort the vector arr
Operating System/CPU Scheduler/Round Robin.cpp:36
Methodconnected
Gfg/C++/bridge_edge_in_graph.cpp:25
Methodconvertt
arr[]: Input Array N : Size of the Array arr[] Function to count inversions in the array.
Gfg/C++/Count Inversions.cpp:11
MethodcountAndSay
(self, n)
Gfg/Python/CountAndSay.py:2
MethodcountBitsFlip
(int a, int b)
Miscellaneous problems/flipbits.java:10
Methodcreate_node
Creating node
Data Structures/LinkedList/C++/SinglyLinkedList.cpp:118
Methodcross
Leetcode/C++/Letter_Combinations_Phone_Number.cpp:68
MethoddeepestLeavesSum
Leetcode/C++/Deepest Leaves Sum.cpp:57
MethoddeleteNode
Leetcode/C++/Delete a given Node when a node is given.cpp:13
MethoddeleteNode
Data Structures/Delete a given Node when a node is given.cpp:13
MethoddeleteNodeHelper
Data Structures/Tree/C++/Red Black Tree (Insertion and Deletion operation).cpp:155
Methoddeserialize
Decodes your encoded data to tree.
Leetcode/C++/Serialize and Deserialize Binary tree.cpp:46
MethoddetectCycle
(ListNode head)
Leetcode/Java/Linked List Cycle II.java:30
Methoddfs
Leetcode/C++/flood_Fill.cpp:16
Methoddfs
Gfg/C++/Find the number of islands.cpp:17
Methoddfs
Gfg/C++/Strongly Connected Components.cpp:20
Methoddfs
Gfg/C++/bridge_edge_in_graph.cpp:12
Methoddfs
Gfg/C++/topological_sort.cpp:18
Methoddisjointset
Constructor to create and initialize sets of n items
Algorithms/Disjoint Set/C++/union_find_algorithm.cpp:10
Methoddisplay_parent
display methods -----------------------------------------------------------------------------
Algorithms/Disjoint Set/C++/union_find_algorithm.cpp:35
Methoddisplay_rank
Algorithms/Disjoint Set/C++/union_find_algorithm.cpp:44
Methoddsmakeset
Creates n single item sets
Algorithms/Disjoint Set/C++/union_find_algorithm.cpp:23
FunctionextractMax
Algorithms/Dynamic Problems/k_arrayheap.cpp:100
MethodfindAndReplacePattern
Leetcode/C++/FindAndReplace.cpp:17
MethodfindKthPositive
(self, arr: list[int], k: int)
Leetcode/Python/KthMissingPositiveNumber.py:19
MethodfindKthPositive
Leetcode/C++/KthMissingPositiveNumber.cpp:16
MethodfindLength
:type nums1: List[int] :type nums2: List[int] :rtype: int
Leetcode/Python/Max Length of Subarray.py:18
FunctionfindMedian
Gfg/C++/median_of_two_sorted_arrays.cpp:21
MethodfindNth
(long N)
Gfg/Java/NthNatural.java:2
MethodfindSum
Funtion for addition of two strings
Gfg/C++/minimum_sum.cpp:18
FunctionfindTwoElement
Gfg/C++/find_missing_and_repeating.cpp:5
Methodfind_set
Algorithms/Graph/C++/Krushal's Algo.cpp:36
MethodfirstBadVersion
Leetcode/C++/First_Bad_Version.cpp:26
MethodfirstMissingPositive
Leetcode/C++/first_missing_positive.cpp:16
MethodfirstUniqChar
()
Leetcode/firstunquiecharacter.java:5
MethodfirstUniqChar
Leetcode/C++/First unique character in a string.cpp:24
MethodfixDelete
fix the rb tree modified by the delete operation
Data Structures/Tree/C++/Red Black Tree (Insertion and Deletion operation).cpp:66
MethodfixInsert
fix the red-black tree
Data Structures/Tree/C++/Red Black Tree (Insertion and Deletion operation).cpp:212
MethodfourSum
Leetcode/C++/4Sum.cpp:5
Functionfree_doubly_linked_list
Hackerank/C/Inserting a Node into a Sorted Doubly Linked List.c:49
Functionfree_singly_linked_list
Hackerank/C/Print element in Linked List.c:47
Functionfree_singly_linked_list
Hackerank/C/Get Node Value.c:59
Functionfree_singly_linked_list
Hackerank/C/Cycle Detection.c:59
Functionfree_singly_linked_list
Hackerank/C/Merge two sorted linkedlist.c:59
Methodfunc
Leetcode/C++/Binary Tree Maximum Path Sum.cpp:30
Functiongcd
Codechef/C++/mod-equality.cpp:74
Methodgenerate_neighbours
Leetcode/C++/Open the door.cpp:53
MethodgetBreadth
Hackerank/C++/Box It.cpp:35
MethodgetHeight
Hackerank/C++/Box It.cpp:39
MethodgetLength
Hackerank/C++/Box It.cpp:31
MethodgetMaxCountChar
Function to get the character with maximum count
Leetcode/C++/Reorganize Strings.cpp:20
FunctiongetNode
* For your reference: * * SinglyLinkedListNode { * int data; * SinglyLinkedListNode* next; * }; * */
Hackerank/C/Get Node Value.c:79
FunctiongetRand
Codechef/C++/Tree House (THOUSES).cpp:20
MethodgetRoot
Data Structures/Tree/C++/Red Black Tree (Insertion and Deletion operation).cpp:445
MethodgetSum
Gfg/C++/Count Inversions.cpp:25
Functionget_document
Hackerank/C/Structuring the Document.c:26
Functionget_document
Hackerank/C/Querying the Document.c:20
Methodgraph
Gfg/Minimum spanning tree.cpp:57
MethodhammingDistance
Leetcode/C++/Hamming_Distance.cpp:3
MethodhammingWeight
Leetcode/C++/Number of 1 bits.cpp:24
MethodhasCycle
Gfg/C++/Detect Cycle in Linklist.cpp:14
Functionhas_cycle
* For your reference: * * SinglyLinkedListNode { * int data; * SinglyLinkedListNode* next; * }; * */
Hackerank/C/Cycle Detection.c:79
Methodhash
return last digit of key
Algorithms/Hashing Techniques/Chaining.cpp:36
Methodhash
Data Structures/Array/C++/ChainHashing.cpp:11
← previousnext →1,601–1,700 of 2,762, ranked by callers