MCPcopy Create free account

hub / github.com/Ayu-99/Data-Structures / functions

Functions807 in github.com/Ayu-99/Data-Structures

MethodmyAtoi
(String s)
Leetcode Challenge/January/Java/String to Integer (atoi).java:2
MethodnthMagicalNumber
Leetcode Challenge/December/Nth Magical Number.cpp:3
MethodnthUglyNumber
Dynamic Programming/Ugly Number II.cpp:3
MethodnumDecodings
(self, s: str)
Leetcode July Challenge/Python/Decode Ways II.py:2
MethodnumDecodings
Leetcode July Challenge/C++/Decode Ways II.cpp:8
MethodnumMatchingSubseq
Leetcode Challenge/June/Number of Matching Subsequences.cpp:6
FunctionnumOfPairs
Story based problems/Amazon/Group of 3.cpp:1
MethodnumRescueBoats
Leetcode Challenge/March/C++/Boats to Save People.cpp:3
MethodnumRescueBoats
(int[] people, int limit)
Leetcode Challenge/March/Java/Boats to Save People.java:2
MethodnumRescueBoats
Greedy/Boats to Save People.cpp:3
MethodnumSubarrayBoundedMax
Leetcode Challenge/June/Number of Subarrays with Bounded Maximum.cpp:3
MethodnumTilings
Leetcode Challenge/December/Domino and Tromino Tiling.cpp:3
MethodnumberOfArithmeticSlices
Leetcode Challenge/March/C++/Arithmetic Slices.cpp:3
MethodnumberOfArithmeticSlices
(int[] nums)
Leetcode Challenge/March/Java/Arithmetic Slices.java:2
MethodnumberOfBeams
(String[] bank)
Matrix/Number of Laser Beams in a Bank.java:2
MethodnumberOfSubarrays
(int[] nums, int k)
HashMaps/Count Number of Nice Subarrays.java:2
MethododdEvenList
Leetcode Challenge/December/Odd Even Linked List.cpp:13
MethodopenLock
Leetcode Challenge/June/Open the Lock.cpp:3
Methodoperator()
Leetcode Challenge/February/cpp/Merge k Sorted Lists.cpp:13
FunctionpairStar
Recursion/Pair Star.cpp:9
MethodpalindromePairs
Leetcode Challenge/June/Palindrome Pairs.cpp:12
Methodpartition
Leetcode Challenge/January/Palindrome Partitioning.cpp:27
FunctionpartitionDisjoint
(self, A)
Leetcode July Challenge/Python/Partition Array into Disjoint Intervals.py:1
MethodpartitionDisjoint
(int[] nums)
Partition Array into Disjoint Intervals.java:2
MethodpartitionDisjoint
Leetcode July Challenge/C++/Partition Array into Disjoint Intervals.cpp:3
MethodpartitionLabels
(self, S: str)
Leetcode Challenge/March/Python/Partition Labels.py:2
MethodpartitionLabels
Leetcode Challenge/March/C++/Partition Labels.cpp:3
MethodpartitionLabels
(String s)
Leetcode Challenge/March/Java/Partition Labels.java:2
Methodpop
()
Leetcode Challenge/March/Java/Maximum Frequency Stack.java:18
FunctionpostOrder
PostOrder of BTree.cpp:2
FunctionpreOrder
PreOrder of BTree..cpp:2
FunctionprintBFS
Graphs/BFS Traversal.cpp:30
FunctionprintKeypad
Recursion/Print Keypad Combinations Code.cpp:5
FunctionprintLevelWise
Trees/Print Level Wise.cpp:46
Functionprint_singly_linked_list
Inserting A Node at a given position in Linked List.c:49
MethodpruneTree
(self, root: TreeNode)
Leetcode July Challenge/Python/Binary Tree Pruning.py:36
MethodpruneTree
Leetcode July Challenge/C++/Binary Tree Pruning.cpp:42
Methodpush
(int val)
Leetcode Challenge/March/Java/Maximum Frequency Stack.java:13
MethodpushDominoes
Leetcode July Challenge/C++/Push Dominoes.cpp:3
Methodquery
Leetcode Challenge/December/Stream of Characters.cpp:38
MethodrangeSumBST
Leetcode Challenge/December/Range Sum of BST.cpp:14
MethodreachableOrNot
Leetcode Challenge/June/Swim in Rising Water.cpp:20
MethodrecoverTree
Do not return anything, modify root in-place instead.
Leetcode Challenge/April/Python/Recover Binary Search Tree.py:16
MethodrecoverTree
Leetcode Challenge/April/C++/Recover Binary Search Tree.cpp:34
MethodrecoverTree
(TreeNode root)
Leetcode Challenge/April/Java/Recover Binary Search Tree.java:4
Methodrecursion
Leetcode Challenge/July2K22/cpp/Binary Tree Right Side View.cpp:14
Methodrecursion
Leetcode Challenge/December/Partition Equal Subset Sum.cpp:3
MethodrelativeSortArray
(int[] arr1, int[] arr2)
Sorting/Relative Sort Array.java:2
MethodremoveConsecutiveCharacter
Recursion/Recursively remove all adjacent duplicates.cpp:4
MethodremoveCoveredIntervals
Leetcode Challenge/February/cpp/Remove Covered Intervals.cpp:3
MethodremoveCoveredIntervals
(int[][] A)
Leetcode Challenge/February/java/Remove Covered Intervals.java:2
MethodremoveDuplicateLetters
Leetcode Challenge/March/C++/Remove Duplicate Letters.cpp:3
MethodremoveDuplicateLetters
(String s)
Leetcode Challenge/March/Java/Remove Duplicate Letters.java:2
FunctionremoveDuplicates
Delete duplicate-value nodes from a sorted linked list.cpp:1
MethodremoveDuplicates
(String s)
Remove Adjacent Duplicates in String.java:1
MethodremoveDuplicates
Leetcode Challenge/June/Remove All Adjacent Duplicates In String.cpp:3
MethodremoveDuplicates
(self, s: str)
Leetcode Challenge/June/Python/Remove All Adjacent Duplicates In String.py:2
MethodremoveDuplicates
Leetcode Challenge/February/cpp/Remove Duplicates from Sorted Array II.cpp:3
MethodremoveDuplicates
(int[] nums)
Leetcode Challenge/February/java/Remove Duplicates from Sorted Array II.java:2
MethodremoveDuplicates
Leetcode Challenge/May/C++/Remove All Adjacent Duplicates in String II.cpp:3
MethodremoveKdigits
(String num, int k)
Remove K Digits.java:1
MethodremoveKdigits
Leetcode Challenge/February/cpp/Remove K Digits.cpp:3
MethodremoveKdigits
(self, num: str, k: int)
Leetcode Challenge/February/Python/Remove K Digits.py:2
MethodremoveKdigits
(String num, int k)
Leetcode Challenge/February/java/Remove K Digits.java:2
MethodremoveMin
Heap/Min Heap/Implementation.cpp:39
MethodremoveNodes
(self, head: Optional[ListNode])
Linked List/Remove Nodes From Linked List.py:20
MethodremoveNthFromEnd
Leetcode Challenge/March2k24/Remove Nth Node From End of List.cpp:11
MethodremovePalindromeSub
Leetcode Challenge/June2k22/cpp/Remove Palindromic Subsequences.cpp:3
FunctionremoveX
Recursion/Remove all occurrences of a character in a string.cpp:1
MethodremoveZeroSumSublists
Linked List/Remove Zero Sum Consecutive Nodes from Linked List.cpp:44
MethodreorderList
Leetcode Challenge/December/Reorder List.cpp:29
Functionreplace
Recursion/Recursive program to replace all occurrences of pi with 3.14 in a given string.cpp:19
Methodreset
Resets the array to its original configuration and return it.
Leetcode July Challenge/Python/Shuffle an Array.py:7
Methodreset
Leetcode July Challenge/C++/Shuffle an Array.cpp:12
Methodresult
(a,b,op)
Stacks and Queues/Evaluate Expression.py:7
Functionrev_linkedlist_itr
Following is the node structure class node{ public: int data; node * next; node(int data){ this->data=data; this->next=NUL
Reverse a LL(Iteratively).cpp:26
Methodreverse
Linked List/Convert Binary Number In a LL To Integer.cpp:52
Methodreverse
Linked List/Reverse A Linked List II.cpp:23
Methodreverse
Leetcode Challenge/June/Reverse Linked List II.cpp:14
Methodreverse
Leetcode Challenge/December/Convert Binary Number in a Linked List to Integer.cpp:14
MethodreverseBetween
Linked List/Reverse A Linked List II.cpp:47
MethodreverseBetween
Leetcode Challenge/June/Reverse Linked List II.cpp:28
MethodreverseHelper
Linked List/Reverse A Linked List II.cpp:42
MethodreverseKGroup
(self, head: ListNode, k: int)
Leetcode July Challenge/Python/Reverse Nodes in k-Group.py:35
MethodreverseKGroup
Leetcode July Challenge/C++/Reverse Nodes in k-Group.cpp:24
MethodreverseList
Linked List/Palindrome Linked List.cpp:22
FunctionreversePrint
Print in Reverse.cpp:1
FunctionreverseQueue
Stacks and Queues/Assignment/Reverse Queue.cpp:16
FunctionreverseStack
Stacks and Queues/Assignment/Reverse Stack.cpp:16
Functionreverse_linked_list_rec
Following is the node structure class node{ public: int data; node * next; node(int data){ this->data=data; this->next=NUL
Reverse LL(Recursively).cpp:27
MethodrightSideView
Leetcode Challenge/July2K22/cpp/Binary Tree Right Side View.cpp:22
Methodrob
(self, nums: List[int])
Leetcode Challenge/December/House Robber.py:8
Methodrob
(self, root: TreeNode)
Leetcode Challenge/December/House Robber III.py:26
Methodrob_helper
(nums,n)
Leetcode Challenge/December/House Robber.py:10
Functionrotate
This function rotates a linked list counter-clockwise and updates the head. The function assumes that k is smaller than size of linked list. It doesn'
Linked List/Rotate a List(Anti-Clockwise).cpp:14
Methodrotate
Leetcode Challenge/January/Rotate array.cpp:3
MethodrotateRight
Linked List/Rotate a List(Clockwise).cpp:33
MethodrotateRight
(self, head: Optional[ListNode], k: int)
Leetcode Challenge/March/Python/Rotate List.py:7
MethodrotateRight
Leetcode Challenge/March/C++/Rotate List.cpp:13
MethodrotateRight
(ListNode head, int k)
Leetcode Challenge/March/Java/Rotate List.java:12
← previousnext →601–700 of 807, ranked by callers