Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/das-jishu/algoexpert-data-structures-algorithms
/ functions
Functions
521 in github.com/das-jishu/algoexpert-data-structures-algorithms
⨍
Functions
521
◇
Types & classes
63
↓ 9 callers
Method
add
(self, word)
Hard/boggle-board.py:90
↓ 6 callers
Method
swap
(self, i, j, array)
Medium/min-heap-construction.py:49
↓ 6 callers
Method
swap
(self, i, j, array)
Hard/sort-k-sorted-array.py:83
↓ 5 callers
Function
binarySearch
(array, target, left, right, positions)
Hard/search-for-range.py:11
↓ 5 callers
Function
coordToString
(coord)
Very Hard/rectangle-mania.py:64
↓ 5 callers
Method
peek
(self)
Hard/continuous-median.py:81
↓ 4 callers
Function
checkIfDescendant
(currentNode, targetNode)
Hard/validate-three-nodes.py:23
↓ 4 callers
Method
insert
(self, value)
Medium/min-height-BST.py:27
↓ 4 callers
Method
insert
(self, value)
Hard/continuous-median.py:91
↓ 4 callers
Function
isValidPart
(string)
Medium/valid-ip-addresses.py:24
↓ 4 callers
Function
markAllBorderBlacks
(matrix, i, j)
Medium/remove-islands.py:29
↓ 4 callers
Function
reverseLinkedList
(head)
Hard/inverted-bisection.py:38
↓ 4 callers
Method
siftDown
(self, start, array)
Medium/min-heap-construction.py:23
↓ 4 callers
Method
siftDown
(self, start, array)
Hard/sort-k-sorted-array.py:57
↓ 4 callers
Function
swap
(array, one, two)
Hard/quick-sort.py:37
↓ 3 callers
Function
addSubtreeNodesAtDistanceK
(node, distance, k, nodesDistanceK)
Hard/find-nodes-distance-k.py:99
↓ 3 callers
Function
calculateMaxPathSum
(node)
Hard/max-path-sum-binary-trees.py:10
↓ 3 callers
Function
convertPointToString
(x, y)
Very Hard/minimum-area-rectangle.py:75
↓ 3 callers
Function
factorial
(n)
Medium/number-of-ways-to-traverse-graph.py:34
↓ 3 callers
Function
getCoordsTable
(coords)
Very Hard/rectangle-mania.py:10
↓ 3 callers
Function
getRectangleCount
(coords, coordsTable)
Very Hard/rectangle-mania.py:37
↓ 3 callers
Function
isSquareOfZeroes
(matrix, r1, c1, r2, c2)
Very Hard/square-of-zeroes.py:19
↓ 3 callers
Method
remove
(self, node)
Medium/linked-list-construction.py:93
↓ 3 callers
Method
swap
(self, i, j, heap)
Very Hard/A-star-algorithm.py:167
↓ 3 callers
Method
swap
(self, i, j, heap)
Very Hard/merge-sorted-arrays.py:97
↓ 3 callers
Method
swap
(self, i, j, heap)
Hard/laptop-rentals.py:88
↓ 3 callers
Method
swap
(self, i, j, array)
Hard/dijkstra-algorithm.py:142
↓ 3 callers
Method
swap
(self, i, j, array)
Hard/continuous-median.py:96
↓ 3 callers
Function
updateResult
(largestNumbers, num, index)
Easy/find-three-largest-numbers.py:45
↓ 2 callers
Method
addNode
(self, job)
Hard/topological-sort.py:53
↓ 2 callers
Function
areInterwoven
(one, two, three, i, j)
Hard/interweaving-strings.py:35
↓ 2 callers
Method
buildHeap
(self, array)
Medium/min-heap-construction.py:14
↓ 2 callers
Method
buildHeap
(self, array)
Hard/sort-k-sorted-array.py:49
↓ 2 callers
Function
buildSequence
(array, sequences, start)
Very Hard/longest-increasing-subsequence.py:21
↓ 2 callers
Function
buildSequence
(maxHeights, disks)
Hard/disk-stacking.py:38
↓ 2 callers
Function
calculateManhattanDistance
(currentNode, endNode)
Very Hard/A-star-algorithm.py:68
↓ 2 callers
Function
clockwiseCountRectangles
(coord, coordsTable, direction, origin)
Very Hard/rectangle-mania.py:43
↓ 2 callers
Function
connectLeafNodes
(currentNode, head=None, previousNode=None)
Very Hard/compare-leaf-traversal.py:28
↓ 2 callers
Function
connectNodes
(left, right)
Very Hard/flatten-binary-tree.py:97
↓ 2 callers
Function
distanceBetween
(a, b)
Very Hard/apartment-hunting.py:66
↓ 2 callers
Function
findDegrees
(friendsLists, person, degrees, visited, level)
Medium/degrees-of-separation.py:31
↓ 2 callers
Function
findMinDistance
(distances, visited)
Hard/dijkstra-algorithm.py:29
↓ 2 callers
Function
findMinSpaces
(pi, index, number, spaceCount)
Hard/numbers-pi.py:13
↓ 2 callers
Function
findNextCharacter
(pattern, index)
Hard/glob-matching.py:44
↓ 2 callers
Function
getIdxOfFirstBiggerOrEqual
(array, startingIdx, maxVal)
Hard/same-bsts.py:54
↓ 2 callers
Function
getIdxOfFirstSmaller
(array, startingIdx, minVal)
Hard/same-bsts.py:47
↓ 2 callers
Function
getLongestBalancedInDirection
(string, leftToRight)
Very Hard/longest-balanced-substring.py:67
↓ 2 callers
Function
getLongestPalindrome
(string, i, j)
Medium/longest-palindromic-substring.py:20
↓ 2 callers
Method
getNode
(self, job)
Hard/topological-sort.py:57
↓ 2 callers
Function
getUnconnectedPeople
(friendsLists, degrees)
Medium/degrees-of-separation.py:47
↓ 2 callers
Function
increaseCharCount
(char, charCounts)
Very Hard/smallest-substring-containing.py:56
↓ 2 callers
Method
insert
(self, node)
Very Hard/A-star-algorithm.py:162
↓ 2 callers
Method
insert
(self, value, idx, numSmallerAtInsertTime=0)
Very Hard/right-smaller-than.py:48
↓ 2 callers
Method
insert
(self, value)
Hard/sort-k-sorted-array.py:104
↓ 2 callers
Method
insertBefore
(self, node, nodeToInsert)
Medium/linked-list-construction.py:36
↓ 2 callers
Method
isEmpty
(self)
Very Hard/A-star-algorithm.py:117
↓ 2 callers
Method
isEmpty
(self)
Hard/sort-k-sorted-array.py:45
↓ 2 callers
Function
maxSubsetSumNoAdjacent
(array, i=0)
Medium/max-subset-sum-no-adjacent.py:5
↓ 2 callers
Function
mergeTwoArrays
(array1, array2)
Very Hard/merge-sort.py:16
↓ 2 callers
Function
minNumberOfCoinsForChangeHelper
(n, denoms, known)
Medium/min-number-of-coins-for-change.py:9
↓ 2 callers
Function
minutesToTime
(minutes)
Very Hard/calendar-matching.py:67
↓ 2 callers
Function
preComputeNumOfZeroes
(matrix)
Very Hard/square-of-zeroes.py:64
↓ 2 callers
Function
quickSortHelper
(array, low, high)
Hard/quick-sort.py:20
↓ 2 callers
Function
relaxEdgesAndUpdateDistances
(graph, distances)
Very Hard/detect-arbitrage.py:23
↓ 2 callers
Method
remove
(self)
Hard/sort-k-sorted-array.py:92
↓ 2 callers
Method
remove
(self)
Hard/continuous-median.py:84
↓ 2 callers
Method
removeTail
(self)
Very Hard/LRU-cache.py:79
↓ 2 callers
Function
reverseListRange
(list, start, end)
Medium/reverse-words-in-string.py:36
↓ 2 callers
Function
siftDown
(currentIdx, endIdx, heap)
Hard/heap-sort.py:18
↓ 2 callers
Method
siftDown
(self, currentIdx, endIdx, heap)
Very Hard/A-star-algorithm.py:126
↓ 2 callers
Method
siftDown
(self, currentIdx, endIdx, heap)
Very Hard/merge-sorted-arrays.py:65
↓ 2 callers
Method
siftDown
(self, currentIdx, endIdx, heap)
Hard/laptop-rentals.py:53
↓ 2 callers
Method
siftDown
(self, start, endIdx, heap)
Hard/dijkstra-algorithm.py:117
↓ 2 callers
Method
siftDown
(self, currentIdx, endIdx, heap)
Hard/continuous-median.py:53
↓ 2 callers
Method
siftUp
(self, start, array)
Medium/min-heap-construction.py:40
↓ 2 callers
Method
siftUp
(self, currentIdx, heap)
Very Hard/A-star-algorithm.py:145
↓ 2 callers
Method
siftUp
(self, start, array)
Hard/sort-k-sorted-array.py:74
↓ 2 callers
Function
solvePartialSudoku
(row, col, board)
Hard/solve-sudoku.py:10
↓ 2 callers
Function
swap
(array, i, j)
Medium/permutations.py:39
↓ 2 callers
Function
swap
(one, two, array)
Hard/quickselect.py:33
↓ 2 callers
Function
swap
(i, j, array)
Hard/heap-sort.py:36
↓ 2 callers
Function
timeToMinutes
(time)
Very Hard/calendar-matching.py:63
↓ 2 callers
Method
update
(self, vertex, value)
Hard/dijkstra-algorithm.py:156
↓ 2 callers
Function
updateCalendar
(calendar, dailyBounds)
Very Hard/calendar-matching.py:13
↓ 2 callers
Method
updateMostRecent
(self, node)
Very Hard/LRU-cache.py:47
↓ 1 callers
Function
addNodeCounts
(node, nodeCounts)
Very Hard/all-kinds-of-node-depths.py:86
↓ 1 callers
Function
addNodeDepths
(node, nodeDepths, nodeCounts)
Very Hard/all-kinds-of-node-depths.py:77
↓ 1 callers
Method
addPrereq
(self, job, prereq)
Hard/topological-sort.py:48
↓ 1 callers
Function
areAllVerticesVisited
(arrivalTimes)
Very Hard/two-edge-connected-graph.py:18
↓ 1 callers
Function
areSameBsts
(arrayOne, arrayTwo, rootIdxOne, rootIdxTwo, minVal, maxVal)
Hard/same-bsts.py:29
↓ 1 callers
Function
areValidDimensions
(o, c)
Hard/disk-stacking.py:69
↓ 1 callers
Function
binarySearch
(startIdx, endIdx, indices, array, num)
Very Hard/longest-increasing-subsequence.py:41
↓ 1 callers
Function
binarySearch
(array, target, left, right)
Hard/shifted-binary-search.py:9
↓ 1 callers
Function
binaryTreeHelper
(tree, longestDiameter)
Medium/binary-tree-diameter.py:18
↓ 1 callers
Function
breadthFirstSearchForNodesDistanceK
(targetNode, nodesToParents, k)
Hard/find-nodes-distance-k.py:20
↓ 1 callers
Function
buildHeap
(array)
Hard/heap-sort.py:13
↓ 1 callers
Method
buildHeap
(self, array)
Very Hard/A-star-algorithm.py:120
↓ 1 callers
Method
buildHeap
(self, array)
Very Hard/merge-sorted-arrays.py:59
↓ 1 callers
Method
buildHeap
(self, array)
Hard/laptop-rentals.py:47
↓ 1 callers
Method
buildHeap
(self, array)
Hard/dijkstra-algorithm.py:108
next →
1–100 of 521, ranked by callers