MCPcopy Create free account

hub / github.com/codemistic/Data-Structures-and-Algorithms / functions

Functions2,714 in github.com/codemistic/Data-Structures-and-Algorithms

MethodisPowerOfFour
CPP/Leetcode/342-power-of-four/342-power-of-four.cpp:3
MethodisPowerOfThree
CPP/Leetcode/326-power-of-three/326-power-of-three.cpp:3
FunctionisPowerOfTwo
(self, n: int)
Python/CheckPowerOf2.py:4
MethodisPowerof2
(int n)
Java/FiveBitManipulation/BitOperations.java:50
MethodisSameTree
CPP/Trees/Same Tree.cpp:14
MethodisSameTree
(self, p: Optional[TreeNode], q: Optional[TreeNode])
Python/same_tree.py:16
MethodisSorted
Arrays/18_Menu_Based_problem.cpp:209
MethodisSymmetric
Leetcode-solutions/Symmetric_Tree/Symmetric_Tree.cpp:14
MethodisValid
CPP/Leetcode/20-valid-parentheses/20-valid-parentheses.cpp:3
MethodisValid
(tring s)
Java/Leetcode/leetcode_Valid Parentheses.java:2
Methodis_integer
CPP/PowerOfFour.cpp:7
Functionis_prime
Returns True if n is prime.
Python/CP_Templates.py:55
Methodisdown
Return True if pen is down, False if it's up. No argument. Example (for a Turtle instance named turtle): >>> turtle.penup()
Python/Turtle.py:2022
Functionistreebalanced
CPP/binarytreeuse.cpp:296
Methodisvisible
Return True if the Turtle is shown, False if it's hidden. No argument. Example (for a Turtle instance named turtle): >>> tur
Python/Turtle.py:2223
MethodkWeakestRows
CPP/Leetcode/1337-the-k-weakest-rows-in-a-matrix/1337-the-k-weakest-rows-in-a-matrix.cpp:3
MethodkidsWithCandies
CPP/Problems/kids-with-te-greatest-number-of-candies.cpp:3
Functionkosaraju
Function to find number of strongly connected components in the graph.
CPP/graph_tree/Kosaraju Algorithm.cpp:35
FunctionkruskalsAlgo
CPP/graphseries.cpp:466
MethodkthSmallest
Trees/Leetcode-230. Kth Smallest Element in a BST.cpp:4
Methodlca
CPP/Trees/LowestCommonAncestor.cpp:18
MethodleftNode
Trees/Convert Binary Tree to Doubly Linked List.cpp:16
Functionlenght
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/leetcode_82.cpp:70
Functionlenght
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/delete_unsorted.cpp:69
Functionlength
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/reverseklinked.cpp:18
Functionlength
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/leetcode92.cpp:35
MethodlengthOfLIS
CPP/Leetcode/300-longest-increasing-subsequence/300-longest-increasing-subsequence.cpp:16
MethodlengthOfLIS
CPP/Dynamic Programming/Longest Increasing Subsequences.cpp:47
MethodlengthOfLIS
CPP/Dynamic Programming/Russian Doll.cpp:47
MethodlengthOfLIS
CPP/Dynamic Programming/Longest Increasing Subsequence.cpp:5
MethodlengthOfLongestSubstring
CPP/Problems/Longest Substring Without Repeating Characters.cpp:3
MethodlengthOfLongestSubstring
CPP/Problems/Leetcode- Longest Substring Without Repeating Characters.cpp:3
Methodletter
(nums,digits,count,val)
Python/LetterCombinationsOfPhoneNumber.py:28
MethodletterCasePermutation
CPP/Problems/Leetcode-784-LetterCasePermutation.cpp:3
MethodletterCombinations
:type digits: str :rtype: List[str]
Python/LetterCombinationsOfPhoneNumber.py:8
MethodletterPermute
CPP/Problems/Leetcode-784-LetterCasePermutation.cpp:9
MethodlevelOrder
CPP/Problems/BinaryTreeLevelOrderTraversal.cpp:3
MethodlevelOrder
Trees/binary-tree-level-order-traversal.cpp:29
MethodlevelOrder
Trees/Level Order Traversal of Binart Tree.cpp:13
Functionleveloder
CPP/binarytreeuse.cpp:302
Functionlevelwiselinkedlist
CPP/binarytreeuse.cpp:352
Methodlongest
CPP/Problems/longest_uploaded_prefix.cpp:15
MethodlongestCommonPrefix
CPP/Leetcode/14-longest-common-prefix/14-longest-common-prefix.cpp:3
MethodlongestCommonPrefix
CPP/Problems/Longest Common Prefix.cpp:3
MethodlongestOnes
CPP/Leetcode/1004-max-consecutive-ones-iii/1004-max-consecutive-ones-iii.cpp:3
MethodlongestPalindrome
CPP/Problems/Longest Palindromic Substring.cpp:3
MethodlongestPalindrome
CPP/Dynamic Programming/Longest-Palindromic-Substring.cpp:5
MethodlongestPalindromeSubseq
THIS IS THE TABULATION/BOTTOM-UP SOLUTION SINCE MEMOIZATION IS HAVING (M*N + (M+N) -> AUXILIARY) SPACE COMPLEXITY AND HENCE GIVES NEEDS TO BE SPACE-OP
CPP/Dynamic Programming/Longest-Palindromic-Subsequence.cpp:6
MethodlongestStrChain
(String[] words)
1048-longest-string-chain/1048-longest-string-chain.java:2
FunctionlongestSubsequence
CPP/Dynamic Programming/Longest_Increasing_Subsequence.cpp:7
Functionmain
PolynomialAddition.cpp:110
Functionmain
left view of tree.cpp:47
Functionmain
disjoint set - Copy/code.cpp:98
Functionmain
Matrix/sparseMatrix.c:32
Functionmain
Matrix/MatrixTranspose.cpp:4
Functionmain
Arrays/18_Menu_Based_problem.cpp:334
Functionmain
Arrays/13_IsSorted .cpp:28
Functionmain
Arrays/17_nsertion_and_Deletion.cpp:77
Functionmain
Arrays/32_Leaders_in_Array.cpp:46
Functionmain
Arrays/29_Find_a_pair_with_sum_k_using_Hashing.cpp:3
Functionmain
Arrays/NCRcombination.c:24
Functionmain
Arrays/07_Linearsearch.c:25
Functionmain
Arrays/21_Multiple_Missing_Elements_in_Sorted_Array.cpp:9
Functionmain
Arrays/23_Finding_Duplicate_in_Sorted_Array.cpp:3
Functionmain
Arrays/06_Deleting_element_from_array.c:39
Functionmain
Arrays/27_Find_a_pair_with_sum_k.cpp:3
Functionmain
Arrays/05_inserting_an_element.cpp:36
Functionmain
main function
Arrays/32_Operations_on_arrays.c:258
Functionmain
Arrays/01_static_and_dynamicArray.c:3
Functionmain
Arrays/26_Finding_Duplicate_in_Unsorted_Array.cpp:3
Functionmain
Arrays/14_Mergeing_2_Array.c:41
Functionmain
Arrays/10_Binary_Search_Using_Recursion.c:33
Functionmain
Arrays/12_Rotate_and_Shift.cpp:44
Functionmain
Arrays/28_Find_a_pair_with_sum_k_in_unsorted.cpp:3
Functionmain
Main Function
Arrays/31_Menu_for_Array.c:500
Functionmain
Arrays/30_Finding_max_&_min_in_single_scan.cpp:3
Functionmain
Arrays/22_Missing_elements_in_Unsorted_Array_HT.cpp:3
Functionmain
Arrays/04_Array_ADT.c:19
Functionmain
Arrays/03_Creating_2D_array_Accessing.c:4
Functionmain
Arrays/24_Counting_Duplicate_Elements_In_Sorted.cpp:3
Functionmain
Arrays/_removeElement.cpp:10
Functionmain
Arrays/19_Single_Missing_Element_in_Sorted_Array.cpp:3
Functionmain
Arrays/08_Improving_Linear_search.c:35
Functionmain
Arrays/15_InsertSort .c:36
Functionmain
Arrays/20_Single_Missing_Value_in_a_sorted_array_M2.c:28
Functionmain
Arrays/02_increasing_size_of_array_using_heap.cpp:7
Functionmain
Arrays/16_Set_Operation.c:105
Functionmain
Arrays/09_Binary_Search_using_loop.c:32
Functionmain
Arrays/11_Get_Set_max_min_sum_avg.c:65
Functionmain
Arrays/33_Sort_0_1_2.cpp:55
Functionmain
CSES/Sorting/MissingCoinSum.cc:7
Functionmain
CSES/Sorting/Traffic_lights.cc:5
Functionmain
CSES/Sorting/Playlist.cc:5
Functionmain
CSES/Sorting/Restaurant.cc:5
Functionmain
CSES/Sorting/SumOfTwoValues.cc:6
Functionmain
CSES/Sorting/CollectionNumbers.cc:5
Functionmain
CSES/Sorting/Concert.cc:5
Functionmain
CSES/Sorting/CollectionNumbers2.cc:5
Functionmain
CSES/Sorting/MaximumSubarraySum.cc:7
Functionmain
CSES/DP/coinCombinations1.cpp:44
← previousnext →1,701–1,800 of 2,714, ranked by callers