Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FazeelUsmani/Amazon-SDE-Preparation
/ functions
Functions
216 in github.com/FazeelUsmani/Amazon-SDE-Preparation
⨍
Functions
216
◇
Types & classes
18
↓ 20 callers
Method
push
08 Stack/Special Stack.cpp:27
↓ 15 callers
Method
find
(String s)
05 Hashing/firstNonRepeatingCharacter.java:1
↓ 14 callers
Function
sort
(a,N, up)
03 Sorting/Bitonic Sort.py:35
↓ 13 callers
Method
pop
08 Stack/Special Stack.cpp:40
↓ 8 callers
Function
newNode
A utility function to create a new Binary Tree Node
10 Trees/Print_left_view_of_binary_tree.cpp:13
↓ 6 callers
Function
insertAtTail
Inserting at tail
07 Linked List/03_InsertInSortedLinkedList.cpp:19
↓ 5 callers
Function
print
07 Linked List/04_reverseLinkedList.cpp:35
↓ 4 callers
Function
display
displaying all the elements in the linked list
07 Linked List/03_InsertInSortedLinkedList.cpp:39
↓ 3 callers
Function
insertInSortedLinkedList
Inserting a new node in sorted linked list
07 Linked List/03_InsertInSortedLinkedList.cpp:51
↓ 3 callers
Function
push
Method to add element to stack
08 Stack/Stack_USing_Array.cpp:6
↓ 2 callers
Function
check
05 Hashing/04 matchSpecificPattern.cpp:1
↓ 2 callers
Function
insert
Code 2020/Linked list/Linked List Fundamentals.cpp:9
↓ 2 callers
Function
lengthlist
Code 2020/Linked list/Linked List Fundamentals.cpp:72
↓ 2 callers
Function
maxheap
Code 2020/Heap/makingheap.cpp:4
↓ 2 callers
Function
removeDuplicates
01 Arrays/26 unionTwoSortedArrays.cpp:1
↓ 1 callers
Function
Eratosthenes
Code 2020/Arrays/Arrangement and Rearrangement/try.cpp:6
↓ 1 callers
Function
FindKthLargest
Function to find the K'th largest element in the array using min-heap
Code 2020/Arrays/Order statistics/kth largest using minheap.cpp:8
↓ 1 callers
Function
Longest_common_Subsequence_BU_s
Dp approach without Dynamic memory
15 Dynamic Programming/Longest_common_Subsequence.cpp:95
↓ 1 callers
Method
Matrix
15 Dynamic Programming/Matrix_chain_Multiplication.cpp:9
↓ 1 callers
Function
MaxSum
O(n) O(n)
15 Dynamic Programming/Maxium_Subarray_Sum.cpp:5
↓ 1 callers
Function
MaxSum_II
Kadane's Algorithm O(n) O(1)
15 Dynamic Programming/Maxium_Subarray_Sum.cpp:28
↓ 1 callers
Function
MinstepBU
15 Dynamic Programming/Minimum_Steps_to-One.cpp:37
↓ 1 callers
Function
addafter
Code 2020/Linked list/Linked List Fundamentals.cpp:25
↓ 1 callers
Function
bitonicMerge
(a, low, cnt, dire)
03 Sorting/Bitonic Sort.py:15
↓ 1 callers
Function
bitonicSort
(a, low, cnt,dire)
03 Sorting/Bitonic Sort.py:26
↓ 1 callers
Function
buildheap
Code 2020/Heap/makingheap.cpp:27
↓ 1 callers
Function
compAndSwap
(a, i, j, dire)
03 Sorting/Bitonic Sort.py:7
↓ 1 callers
Function
find
05 Hashing/07 firstNonRepeatingCharacter.cpp:1
↓ 1 callers
Function
findno
Code 2020/Arrays/Array rotation/find_element_at_index.cpp:4
↓ 1 callers
Function
fun
Code 2020/Arrays/Array rotation/pointer_call_fuction.cpp:3
↓ 1 callers
Function
fun1
Code 2020/Arrays/Arrangement and Rearrangement/min swaps for less than or equal to k.cpp:4
↓ 1 callers
Function
fun2
Code 2020/Arrays/Arrangement and Rearrangement/min swaps for less than or equal to k.cpp:20
↓ 1 callers
Function
gcd
01 Arrays/05 rotateArray.cpp:8
↓ 1 callers
Function
getMiddle
07 Linked List/01_middleElement.cpp:18
↓ 1 callers
Method
isIsomorphic
(String s, String t)
05 Hashing/matchSpecificPattern.java:1
↓ 1 callers
Function
isMajority
02 Searching/01 majorityElement.cpp:2
↓ 1 callers
Function
josephus
Code 2020/Linked list/josephus problem.cpp:9
↓ 1 callers
Function
leftView
A wrapper over leftViewUtil()
10 Trees/Print_left_view_of_binary_tree.cpp:45
↓ 1 callers
Function
leftViewUtil
Recursive function to print left view of a binary tree.
10 Trees/Print_left_view_of_binary_tree.cpp:24
↓ 1 callers
Function
leftrotate
Code 2020/Arrays/Array rotation/array_llrotation.cpp:4
↓ 1 callers
Method
lengthOfLIS
15 Dynamic Programming/Longest_Increasing_Subsequence.cpp:16
↓ 1 callers
Function
main
()
01 Arrays/19 trappingRainWater.py:27
↓ 1 callers
Function
maxMeeting
Function for finding maximum meeting in one room
Greedy/N meeting in One room.cpp:22
↓ 1 callers
Method
maxProduct
O(n) O(1)
15 Dynamic Programming/Maximum_product_Subarray.cpp:21
↓ 1 callers
Function
maxsum
Code 2020/Hash/Maxsum subarray.cpp:4
↓ 1 callers
Function
merge
Code 2020/Heap/merge.cpp:4
↓ 1 callers
Function
mergesort
Code 2020/Heap/merge.cpp:40
↓ 1 callers
Function
midelement
Code 2020/Linked list/Linked List Fundamentals.cpp:103
↓ 1 callers
Function
overlappedInterval
01 Arrays/21_OverlappingIntervals.cpp:10
↓ 1 callers
Function
overlappedInterval
01 Arrays/21[optimized]OverlappingIntervals.cpp:9
↓ 1 callers
Function
pair_check
Code 2020/Arrays/Array rotation/Find_pair_with_givn_sum.cpp:4
↓ 1 callers
Function
pop
Method to delete the element from Stack
08 Stack/Stack_USing_Array.cpp:11
↓ 1 callers
Function
print3largest
Code 2020/Arrays/Order statistics/first three largest no in O(n).cpp:3
↓ 1 callers
Function
printlist
Code 2020/Linked list/Linked List Fundamentals.cpp:37
↓ 1 callers
Function
rev
Code 2020/Arrays/Arrangement and Rearrangement/Reverse words.cpp:4
↓ 1 callers
Function
reverseList
07 Linked List/04_reverseLinkedList.cpp:18
↓ 1 callers
Function
rotateArr
01 Arrays/05 rotateArray.cpp:17
↓ 1 callers
Function
search
Code 2020/Arrays/Array rotation/find_min_in_sorted_rotated_array.cpp:4
↓ 1 callers
Function
search
Code 2020/Arrays/Array rotation/Find_element_in_array.cpp:4
↓ 1 callers
Function
solve
Code 2020/Arrays/Arrangement and Rearrangement/try.cpp:22
↓ 1 callers
Function
solve
Code 2020/Hash/water bucket.cpp:4
↓ 1 callers
Function
solve
Code 2020/Linked list/maximised partition amazon.cpp:4
↓ 1 callers
Function
solve
Code 2020/Linked list/substring of k length and k distinct k letters.cpp:4
↓ 1 callers
Function
togetnode
Code 2020/Linked list/Linked List Fundamentals.cpp:80
↓ 1 callers
Function
togetnodefromend
Code 2020/Linked list/Linked List Fundamentals.cpp:91
↓ 1 callers
Function
trappingWater
(arr,n)
01 Arrays/19 trappingRainWater.py:2
Method
ListNode
07 Linked List/04_reverseLinkedList.cpp:11
Method
ListNode
07 Linked List/01_middleElement.cpp:11
Method
LongestSubsequence_TD
15 Dynamic Programming/Longest_common_Subsequence.cpp:9
Function
Longest_common_Subsequence_BU
Dp approach with Dynamic memory
15 Dynamic Programming/Longest_common_Subsequence.cpp:72
Function
MissingNumber
02 Searching/03 missingNuminArr.cpp:1
Function
NumberofElementsInIntersection
Given two arrays A and B and their sizes N and M respectively
01 Arrays/27 intersectionTwoArrays.cpp:2
Method
Recursive
15 Dynamic Programming/Longest_common_Subsequence.cpp:28
Function
SortBinaryArray
01 Arrays/28 binaryArraySorting.cpp:1
Function
Steps_toOne
minimum steps to one
15 Dynamic Programming/Minimum_Steps_to-One.cpp:6
Function
arrange
(arr, n)
01 Arrays/24 rearrangeArray.py:1
Function
atoi
06 String/06 atoi.cpp:1
Function
binarySubstring
06 String/07 binaryString.cpp:1
Method
boundaryTraversal
04 Matrix/03 boundaryTraversalMatrix.cpp:40
Method
boundaryTraversalNew
04 Matrix/03 boundaryTraversalMatrix.cpp:7
Function
circularSubarraySum
01 Arrays/23 maxCircularSubarray.cpp:1
Function
combineParts
exam/1_amazon_fullfillment_builder.cpp:8
Function
comparator
Comparator function which can compare the second element of structure used to sort pairs in increasing order of second value.
Greedy/N meeting in One room.cpp:16
Function
convertFive
you are required to complete this method*/
01 Arrays/01 Replace0with5.cpp:3
Function
convertToRoman
06 String/03 convertToRomanNumber.cpp:1
Function
convertToWave
01 Arrays/12 waveArray.cpp:1
Function
countDistinct
05 Hashing/05 countDistinctElements.cpp:1
Method
countDistinct
(int a[], int n, int k)
05 Hashing/countDistinctElementInEveryWindow.java:1
Function
deletelist
Code 2020/Linked list/Linked List Fundamentals.cpp:63
Function
duplicates
01 Arrays/10 find_duplicates_in_array.cpp:1
Function
equilibriumPoint
01 Arrays/13 equilibriumPoint.cpp:1
Function
find3Numbers
01 Arrays/09 sortedSubsequence3.cpp:1
Function
findK
04 Matrix/04 nthEleSpiralMatrix.cpp:3
Function
findMatchedWords
05 Hashing/04 matchSpecificPattern.cpp:21
Method
findMatchedWords
(ArrayList<String> dict, String pattern)
05 Hashing/matchSpecificPattern.java:18
Function
findPairs
05 Hashing/08 positiveNegativePair.cpp:1
Function
findUnion
01 Arrays/26 unionTwoSortedArrays.cpp:17
Function
floorSqrt
Function to find square root x: element to find square root
02 Searching/02 squareRoot.cpp:4
Function
frequencycount
01 Arrays/25 freqOfLimitedRangeArrEle.cpp:4
Method
getMin
08 Stack/Special Stack.cpp:65
next →
1–100 of 216, ranked by callers