Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ functions
Functions
1,645 in github.com/careercup/ctci
⨍
Functions
1,645
◇
Types & classes
400
↓ 77 callers
Method
add
(int d)
java/Chapter 3/Question3_4/Tower.java:17
↓ 67 callers
Method
length
()
java/Chapter 18/Question18_13/WordGroup.java:25
↓ 62 callers
Method
append
(String s)
java/Chapter 18/Question18_13/Rectangle.java:75
↓ 49 callers
Method
PushFront
PushFront inserts a new element e with value v at the front of list l and returns e.
go/chapter02/list/list.go:149
↓ 49 callers
Method
size
()
java/Chapter 8/Question8_9/File.java:12
↓ 46 callers
Method
get
(K key)
java/Chapter 8/Question8_10/Hash.java:34
↓ 39 callers
Method
Next
Next returns the next list element or nil.
go/chapter02/list/list.go:41
↓ 39 callers
Method
put
(K key, V value)
java/Chapter 8/Question8_10/Hash.java:17
↓ 33 callers
Method
add
(int a, int b)
java/Chapter 18/Question18_1/Question.java:5
↓ 31 callers
Method
PushFront
PushFront inserts a new element e with value v at the front of list l
Go/Chapter 2/list/list.go:28
↓ 30 callers
Function
nways
Return in how many possible ways we can run up the stairs
python/Chapter 9/Question9_01/staircase.py:28
↓ 28 callers
Method
eq
(self, data)
python/Chapter 3/Question3_5/3_5.py:16
↓ 28 callers
Method
randomIntInRange
(int min, int max)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:11
↓ 26 callers
Method
Front
Front returns the first element of list l or nil.
go/chapter02/list/list.go:79
↓ 25 callers
Method
get
(int i)
java/Chapter 14/Question14_6/CircularArray.java:24
↓ 24 callers
Method
push
(int v)
java/Chapter 3/Question3_3/Stack.java:22
↓ 23 callers
Method
isEmpty
()
java/Chapter 3/Question3_3/Stack.java:39
↓ 22 callers
Method
pop
()
java/Chapter 3/Question3_3/Stack.java:32
↓ 21 callers
Method
Front
()
Go/Chapter 2/list/list.go:47
↓ 19 callers
Method
main
@param args
java/Chapter 8/Question8_2/Test.java:8
↓ 19 callers
Method
printForward
()
java/CtCILibrary/CtCILibrary/LinkedListNode.java:33
↓ 18 callers
Method
arrayToString
(int[] array)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:74
↓ 18 callers
Method
join
(Node above, Node below)
java/Chapter 3/Question3_3/Stack.java:17
↓ 18 callers
Method
peek
()
java/Chapter 3/Question3_5/MyQueue.java:33
↓ 17 callers
Method
print
()
java/Chapter 8/Question8_4/Car.java:13
↓ 16 callers
Method
PushBack
PushBack inserts a new element e with value v at the back of list l and returns e.
go/chapter02/list/list.go:155
↓ 15 callers
Method
size
()
java/Chapter 3/Question3_5/MyQueue.java:13
↓ 14 callers
Method
find
(int id)
java/Chapter 8/Question8_5/Library.java:30
↓ 14 callers
Method
printMatrix
(int[][] matrix)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:114
↓ 14 callers
Method
push
(int stackNum, int value)
java/Chapter 3/Question3_1/QuestionB.java:87
↓ 14 callers
Method
remove
()
java/Chapter 3/Question3_5/MyQueue.java:38
↓ 14 callers
Method
toString
()
java/Chapter 9/Question9_10/Box.java:30
↓ 13 callers
Method
abs
(int a)
java/Chapter 7/Question7_4/Question.java:21
↓ 13 callers
Method
pop
(self)
python/Chapter 3/Question3_5/3_5.py:60
↓ 13 callers
Method
print
()
java/CtCILibrary/CtCILibrary/TreeNode.java:101
↓ 12 callers
Method
Print
()
java/Chapter 7/Question7_6/Line.java:24
↓ 12 callers
Method
Push
(value int64)
Go/Chapter 3/Question3_2/Question.go:27
↓ 12 callers
Method
nextToken
()
java/Chapter 17/Question17_10/QuestionString.java:79
↓ 12 callers
Method
toFullBinaryString
(int a)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:90
↓ 10 callers
Method
Len
()
Go/Chapter 2/list/list.go:51
↓ 10 callers
Method
addEntry
(Entry entry)
java/Chapter 8/Question8_9/Directory.java:43
↓ 10 callers
Method
contains
(Square other)
java/Chapter 7/Question7_5/Square.java:21
↓ 10 callers
Method
createMinimalBST
(int arr[], int start, int end)
java/CtCILibrary/CtCILibrary/TreeNode.java:86
↓ 10 callers
Method
enqueue
(Animal a)
java/Chapter 3/Question3_7/AnimalQueue.java:10
↓ 10 callers
Method
enqueue
(a Being)
Go/Chapter 3/Question3_7/Question.go:78
↓ 10 callers
Method
max
(int[] array, int left, int right)
java/Chapter 18/Question18_6/QuestionC.java:65
↓ 10 callers
Method
setNext
(LinkedListNode n)
java/CtCILibrary/CtCILibrary/LinkedListNode.java:16
↓ 9 callers
Method
clone
()
java/Chapter 17/Question17_14/Result.java:11
↓ 9 callers
Method
get
(int pos)
java/Chapter 10/Question10_4/BitSet.java:10
↓ 9 callers
Method
getId
()
java/Chapter 8/Question8_7/User.java:96
↓ 9 callers
Method
print
()
java/Chapter 18/Question18_11/Subsquare.java:11
↓ 9 callers
Method
print
(byte[] output)
java/Chapter 17/Question17_10/QuestionString.java:197
↓ 9 callers
Method
randomArray
(int N, int min, int max)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:33
↓ 9 callers
Function
randomLinkedList
(length, min, max)
python/Chapter 2/classes/LinkedList.py:53
↓ 9 callers
Method
randomMatrix
(int M, int N, int min, int max)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:23
↓ 9 callers
Method
sort
(String s)
java/Chapter 1/Question1_3/Question.java:4
↓ 8 callers
Method
doTestFull
(Square s1, Square s2, Point start, Point end)
java/Chapter 7/Question7_5/Question.java:45
↓ 8 callers
Method
find
(int d)
java/CtCILibrary/CtCILibrary/TreeNode.java:75
↓ 8 callers
Method
middle
()
java/Chapter 7/Question7_5/Square.java:17
↓ 8 callers
Method
print
()
java/Chapter 8/Question8_1/Card.java:36
↓ 8 callers
Method
printWhitespaces
(int count)
java/CtCILibrary/CtCILibrary/BTreePrinter.java:71
↓ 8 callers
Method
remove
(Book b)
java/Chapter 8/Question8_5/Library.java:18
↓ 7 callers
Method
Pop
Remove the top element from the stack and return it's value If the stack is empty, return maxInt, error
Go/Chapter 3/Question3_2/Question.go:39
↓ 7 callers
Method
Push
(val interface{})
go/chapter02/stack/stack.go:35
↓ 7 callers
Method
String
()
Go/Chapter 3/Question3_7/Question.go:18
↓ 7 callers
Function
allunique
(s)
python/Chapter 1/Question1_1/alluniq.py:1
↓ 7 callers
Method
binPrint
(int i)
java/Chapter 5/Question5_3/Question.java:231
↓ 7 callers
Method
min
(Result r1, Result r2)
java/Chapter 17/Question17_14/Result.java:15
↓ 7 callers
Method
numToString
(int number)
java/Chapter 17/Question17_7/Question.java:11
↓ 7 callers
Method
print
(int[] path, int start, int end)
java/Chapter 4/Question4_9/Question.java:45
↓ 7 callers
Function
revStr
(s)
python/Chapter 1/Question1_2/revstr.py:1
↓ 7 callers
Method
set
Sets k-th most-significant bit.
java/Chapter 5/Question5_7/BitInteger.java:26
↓ 7 callers
Method
setPrevious
(LinkedListNode p)
java/CtCILibrary/CtCILibrary/LinkedListNode.java:26
↓ 6 callers
Method
addNode
(self,value)
python/Chapter 2/classes/LinkedList.py:16
↓ 6 callers
Method
addToQueue
(self,char)
python/Chapter 1/Question1_4/ChapQ1.4.py:11
↓ 6 callers
Function
anagram
(s1, s2)
python/Chapter 1/Question1_3/anagram.py:1
↓ 6 callers
Method
createTreeFromArray
(int[] array)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:181
↓ 6 callers
Method
insertValue
insertValue is a convenience wrapper for insert(&Element{Value: v}, at).
go/chapter02/list/list.go:114
↓ 6 callers
Method
print
()
java/Chapter 7/Question7_3/Line.java:14
↓ 6 callers
Method
printIntArray
(int[] array)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:145
↓ 6 callers
Method
randomInt
(int n)
java/Chapter 7/Question7_4/Question.java:66
↓ 6 callers
Function
replaceSpaces
(s)
python/Chapter 1/Question1_4/replace.py:1
↓ 5 callers
Method
Len
Len returns the number of elements of list l. The complexity is O(1).
go/chapter02/list/list.go:76
↓ 5 callers
Function
NewCat
(s string)
Go/Chapter 3/Question3_7/Question.go:64
↓ 5 callers
Function
NewDog
(s string)
Go/Chapter 3/Question3_7/Question.go:61
↓ 5 callers
Method
Push
Pushes/inserts a value at the end/tail of the queue. Note: this function does mutate the queue. go-routine safe.
go/chapter04/queue/queue.go:69
↓ 5 callers
Method
addAdjacent
(Node x)
java/Chapter 4/Question4_2/Node.java:14
↓ 5 callers
Method
addNode
(self, treenode)
python/Chapter 4/Question4_7/BinaryTreeNode.py:36
↓ 5 callers
Method
compareTo
( Object s )
java/Chapter 11/Question11_7/HtWt.java:8
↓ 5 callers
Function
compress
(str_)
python/Chapter 1/Question1_5/compress.py:1
↓ 5 callers
Method
concat
(BiNode x, BiNode y)
java/Chapter 17/Question17_13/QuestionC.java:84
↓ 5 callers
Method
countOnes
(int i)
java/Chapter 5/Question5_3/Question.java:5
↓ 5 callers
Method
find_path
Return the path from (row, column) to (x - 1, y - 1)
python/Chapter 9/Question9_02/robot_paths.py:57
↓ 5 callers
Method
getBoard
()
java/Chapter 8/Question8_8/Game.java:25
↓ 5 callers
Method
getColor
()
java/Chapter 8/Question8_8/Piece.java:18
↓ 5 callers
Method
getFromUser
()
java/Chapter 8/Question8_7/AddRequest.java:22
↓ 5 callers
Method
insert
insert inserts e after at, increments l.len, and returns e.
go/chapter02/list/list.go:102
↓ 5 callers
Method
isAce
()
java/Chapter 8/Question8_1/BlackJackCard.java:34
↓ 5 callers
Method
mark_as_forbidden
Mark (x, y) as off-limits
python/Chapter 9/Question9_02/robot_paths.py:40
↓ 5 callers
Method
pop
(self)
python/Chapter 3/Question3_2/ChapQ3.2.py:12
next →
1–100 of 1,645, ranked by callers