MCPcopy Create free account

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

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

MethodclosedIsland
CPP/Problems/Leetcode-1254-NumberOfClosedIslands.cpp:20
Methodclumsy
(self, n: int)
Python/clumsy_factorial.py:2
Methodcolormode
Return the colormode or set it to 1.0 or 255. Optional argument: cmode -- one of the values 1.0 or 255 r, g, b values of col
Python/Turtle.py:1079
MethodcombinationSum
CPP/Problems/Leetcode-39-CombinationSum.cpp:4
MethodcombinationSum
CPP/Problems/Leetcode-40-CombinationSumII.cpp:4
Methodcombine
CPP/Problems/Leetcode-77-Combinations.cpp:3
Functioncomp
comparator for sorting vector of edges structure
CPP/graphseries.cpp:440
Functioncomp
CPP/graph_tree/Kruskal-Algo.cpp:14
Functioncomp
CPP/Tries/autoComplete.cpp:47
Functioncompare
CPP/Problems/2_ACTIVITY_SELECTION_PROBLEM.CPP:48
Functioncompare
CPP/Problems/3_FRACTIONAL_KNAPSACK.CPP:8
Methodconnect
Trees/Leetcode-116. Populating Next Right Pointers in Each Node.cpp:4
MethodconstructTree
Trees/Construct Binary Tree from Preorder and Inorder Traversal.cpp:24
Methodconstructor
(element)
DSA Javascript/linked_list.js:3
Methodconstructor
()
DSA Javascript/linked_list.js:10
MethodcontainsNearbyDuplicate
CPP/Problems/Leetcode-219.cpp:3
MethodcopyRandomList
(Node head)
Java/LinkedList/Copy_List_with_Random_Pointer.java:19
MethodcountAndSay
CPP/Problems/Leetcode-38-countAndSay.cpp:3
MethodcountMatches
(List<List<String>> items, String ruleKey, String ruleValue)
Java/Leetcode/Leetcode1773.java:19
MethodcountNegatives
(int[][] grid)
Leetcode-solutions/Binary-search/CountNegGrid.java:6
FunctioncountNodes
time : O(n) space : O(1)
CPP/LINKED LIST/Linked_list.cpp:54
MethodcountNodes
Trees/Leetcode-222. Count Complete Tree Nodes.cpp:4
MethodcountOdds
(self, low: int, high: int)
Python/Count-Odd-Numbers-in-an-Interval-Range.py:2
MethodcountOperations
(int num1, int num2)
Java/CountOperationsToObtainZero.java:7
MethodcountSetBits2
(int n)
Java/FiveBitManipulation/BitOperations.java:68
MethodcountSubarrWithEqualZeroAndOne
Function to count subarrays with 1s and 0s.
CPP/arrays/Subarrays with equal 0s and 1s.cpp:4
Functioncount_till_rep
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/delete_unsorted.cpp:60
Functioncountnodes
CPP/binarytreeuse.cpp:113
FunctioncreateList
CPP/LINKED LIST/Linked_list.cpp:12
MethodcreateNode
creating nodes
Trees/Leetcode-623. Add One Row to Tree.cpp:30
MethodcreateParentMapping
Trees/burningTree.cpp:87
Functioncreate_insert_duplicate_nodes
/------------------PRACTICE QUESTIONS ON BINARY TREE ----------------------------------
CPP/binarytreeuse.cpp:509
MethodcursorLeft
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/Design_a_Text_Editor.cpp:58
MethodcursorLeft
CPP/Leetcode/2296-design-a-text-editor/2296-design-a-text-editor.cpp:46
MethodcursorRight
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/Design_a_Text_Editor.cpp:72
MethodcursorRight
CPP/Leetcode/2296-design-a-text-editor/2296-design-a-text-editor.cpp:57
FunctioncutRodUtil
CPP/Dynamic Programming/Rod-Cutting.cpp:5
FunctioncycleBFS
CPP/graphseries.cpp:5
FunctioncycleDirectedDFS
CPP/graphseries.cpp:135
Functioncycle_sort
(array: list)
Python/Sorting-Techniques/Cyclic_Sort.py:1
Methoddelete
(self)
Python/stack using linked list.py:55
MethoddeleteAndEarn
CPP/Problems/Delete_and_Earn.cpp:6
FunctiondeleteList
CPP/LINKED LIST/Linked_list.cpp:95
MethoddeleteNode
CPP/Leetcode/237-delete-node-in-a-linked-list/237-delete-node-in-a-linked-list.cpp:11
MethoddeleteText
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/Design_a_Text_Editor.cpp:24
MethoddeleteText
CPP/Leetcode/2296-design-a-text-editor/2296-design-a-text-editor.cpp:18
Methoddelete_beginning
(self)
CPP/LinkedList/all_singly_linkedlist.py:85
Methoddelete_end
(self)
CPP/LinkedList/all_singly_linkedlist.py:92
Functiondeletenode
CPP/LINKED LIST/SOME LEET CODE QUESTIONS/leet_code_82.cpp:43
Functiondeletenode
CPP/LINKED LIST/SINGLY LINKED LIST/dummy_node.cpp:53
Functiondeletenode
CPP/LINKED LIST/SINGLY LINKED LIST/linkedlisttpractice.cpp:81
Functiondeletenode
CPP/LINKED LIST/DOUBLY LINKED LIST/microsoftquestion.cpp:53
Functiondeletenode
CPP/LINKED LIST/DOUBLY LINKED LIST/middleoflinkedlist.cpp:53
Functiondeletenode
CPP/LINKED LIST/CIRCULAR LOOP CONCEPTS/checkcircular.cpp:22
Methoddequeue
(self)
Python/circular queue.py:52
Methoddequeue
(self)
Python/queue via stack.py:26
MethoddetectCapitalUse
CPP/Leetcode/520-detect-capital/520-detect-capital.cpp:3
MethoddetectCycle
(self, head: Optional[ListNode])
Python/linked_list_cycle_2.py:2
Functiondetectcycle
CPP/LINKED LIST/ALGORITHMIC PROBLEMS RELATED TO LINKEDLIST/floydscycle.cpp:89
Functiondetectcycle
CPP/LINKED LIST/ALGORITHMIC PROBLEMS RELATED TO LINKEDLIST/floydscycle_practice.cpp:141
Functiondfs
CPP/graphseries.cpp:73
Methoddfs
CPP/graph_tree/dfs.cpp:4
Methoddfs
CPP/graph_tree/Topological_Sort.cpp:42
Methoddfs
CPP/Problems/Leetcode-1254-NumberOfClosedIslands.cpp:8
Methoddfs
CPP/Problems/Leetcode-733-FloodFill.cpp:8
Methoddfs
CPP/Dynamic Programming/Number of Islands.cpp:11
Methoddfs
Trees/addOneRowToTree.cpp:117
FunctiondijkstrasAlgorithm
shortest path in weighted undirected graph
CPP/graphseries.cpp:320
Functiondisp
CPP/Trees/Expression_tree/BST.c:108
Functiondisplay
(string_to_print)
Python/CP_Templates.py:2
Methoddisplay
CPP/questions/BasicInheritance.cpp:17
Functiondisplay_2D_list
(li)
Python/CP_Templates.py:129
Functiondisplay_list
(list1, sep=" ")
Python/CP_Templates.py:125
Functiondisplaylinkedlist
CPP/binarytreeuse.cpp:407
MethoddivideArray
(int[] nums)
Java/Leetcode/Leetcode2206.java:2
MethoddivisorSubstrings
CPP/sliding-window/Find the K-Beauty of a Number.cpp:10
Methoddot
Draw a dot with diameter size, using color. Optional arguments: size -- an integer >= 1 (if given) color -- a colorstring or
Python/Turtle.py:3250
FunctionduplicateZeros
CPP/arrays/DuplicateZeroes.cpp:9
Methodencode
CPP/Leetcode/535-encode-and-decode-tinyurl/535-encode-and-decode-tinyurl.cpp:5
Methodend_fill
Fill the shape drawn after the call begin_fill(). No argument. Example (for a Turtle instance named turtle): >>> turtle.colo
Python/Turtle.py:3230
Methodend_poly
Stop recording the vertices of a polygon. No argument. Stop recording the vertices of a polygon. Current turtle position is
Python/Turtle.py:3351
Methodenqueue
(self,item)
Python/queue via stack.py:23
MethodequilibriumPoint
Function to find equilibrium point in the array. a: input array n: size of array
CPP/arrays/equilibrium_point.cpp:6
Methodeventfun
(event)
Python/Turtle.py:511
MethodexitGracefully
Screen.bye() with two dummy-parameters
Python/Turtle.py:3686
Methodexitonclick
Go into mainloop until the mouse is clicked. No arguments. Bind bye() method to mouseclick on TurtleScreen. If "using_IDLE"
Python/Turtle.py:3667
Methodf
CPP/questions/Max Area of Island.cpp:12
Methodf
CPP/Problems/Leetcode-120-Traingle.cpp:14
Functionfactorial_modP_Wilson
(n, p)
Python/CP_Templates.py:40
Functionfast_exp
(base, power)
Python/CP_Templates.py:6
Methodfib
CPP/Leetcode/509-fibonacci-number/509-fibonacci-number.cpp:3
Methodfib
CPP/Dynamic Programming/fibonacci Num.cpp:6
Functionfibonacci_modP
(n, MOD)
Python/CP_Templates.py:35
Methodfillcolor
Return or set the fillcolor. Arguments: Four input formats are allowed: - fillcolor() Return the current fillc
Python/Turtle.py:2158
MethodfinalValueAfterOperations
CPP/Leetcode/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.cpp:3
MethodfindClosestElements
CPP/sliding-window/leetcode-658-find-k-closest-elements.cpp:6
MethodfindCombinations
CPP/Problems/Leetcode-39-CombinationSum.cpp:10
MethodfindCombinations
CPP/Problems/Leetcode-40-CombinationSumII.cpp:10
MethodfindDisappearedNumbers
CPP/Leetcode/448-find-all-numbers-disappeared-in-an-array/448-find-all-numbers-disappeared-in-an-array.cpp:3
MethodfindDuplicate
CPP/Leetcode/287-find-the-duplicate-number/287-find-the-duplicate-number.cpp:3
← previousnext →1,501–1,600 of 2,714, ranked by callers