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
↓ 5 callers
Method
print
()
java/Chapter 3/Question3_4/Tower.java:30
↓ 5 callers
Method
remove
remove removes e from its list, decrements l.len, and returns e.
go/chapter02/list/list.go:119
↓ 5 callers
Function
rotate
(seq)
python/Chapter 1/Question1_6/rotateimg.py:4
↓ 5 callers
Method
score
()
java/Chapter 8/Question8_1/BlackJackHand.java:10
↓ 5 callers
Method
search
(int a[], int left, int right, int x)
java/Chapter 11/Question11_3/Question.java:4
↓ 5 callers
Method
size
()
java/Chapter 3/Question3_7/AnimalQueue.java:50
↓ 5 callers
Method
sort
(String[] array)
java/Chapter 11/Question11_2/QuestionB.java:16
↓ 4 callers
Method
Len
()
Go/Chapter 3/Question3_5/Question.go:40
↓ 4 callers
Method
Name
()
Go/Chapter 3/Question3_7/Question.go:21
↓ 4 callers
Method
Poll
Returns the value at the front of the queue. i.e. the oldest value in the queue. Note: this function does mutate the queue. go-routine safe.
go/chapter04/queue/queue.go:89
↓ 4 callers
Function
absTopOfStack
pointers to all 3 stacks * returns index of the top of the stack "stackNum", in absolute terms */
Go/Chapter 3/Question3_1/Question.go:19
↓ 4 callers
Method
absTopOfStack
(int stackNum)
java/Chapter 3/Question3_1/Question.java:56
↓ 4 callers
Method
addUsingKey
(self, key)
python/Chapter 4/Question4_6/ChapQ4.6.py:83
↓ 4 callers
Method
convert
(int index)
java/Chapter 14/Question14_6/CircularArray.java:13
↓ 4 callers
Method
countCompression
(String str)
java/Chapter 1/Question1_5/Question.java:16
↓ 4 callers
Function
count_children
(tree1)
python/Chapter 4/Question4_8/ChapQ4.8.py:19
↓ 4 callers
Function
covers
(root, p)
python/Chapter 4/Question4_7/BinaryTreeNode.py:58
↓ 4 callers
Method
covers
(TreeNode root, TreeNode p)
java/Chapter 4/Question4_7/QuestionB.java:6
↓ 4 callers
Method
dealCard
()
java/Chapter 8/Question8_1/Deck.java:50
↓ 4 callers
Method
deleteNode
(LinkedListNode n)
java/Chapter 2/Question2_3/Question.java:8
↓ 4 callers
Function
depth
(btree)
python/Chapter 4/Question4_1/ChapQ4.1.py:26
↓ 4 callers
Method
dequeueAny
()
java/Chapter 3/Question3_7/AnimalQueue.java:20
↓ 4 callers
Method
dequeueAny
()
Go/Chapter 3/Question3_7/Question.go:91
↓ 4 callers
Method
extend
(Point mid1, Point mid2, double size)
java/Chapter 7/Question7_5/Square.java:32
↓ 4 callers
Method
fetch
Returns k-th most-significant bit.
java/Chapter 5/Question5_7/BitInteger.java:20
↓ 4 callers
Method
flip
(int bit)
java/Chapter 17/Question17_4/Question.java:5
↓ 4 callers
Method
flipSection
(int row, int column, Color color, Direction d)
java/Chapter 8/Question8_8/Board.java:58
↓ 4 callers
Method
getInstance
()
java/Chapter 8/Question8_8/Game.java:18
↓ 4 callers
Method
getResults
(String query)
java/Chapter 10/Question10_7/Cache.java:69
↓ 4 callers
Method
getRow
()
java/Chapter 8/Question8_4/ParkingSpot.java:37
↓ 4 callers
Method
getScore
()
java/Chapter 8/Question8_8/Player.java:9
↓ 4 callers
Method
getWinner
(Piece[][] board, int fixed_index, Check check)
java/Chapter 17/Question17_2/QuestionB.java:30
↓ 4 callers
Method
insert
(Attribute attribute)
java/Chapter 17/Question17_10/Element.java:39
↓ 4 callers
Method
isApproxEqual
(double d1, double d2)
java/Chapter 7/Question7_5/Question.java:18
↓ 4 callers
Method
isRotation
(String s1, String s2)
java/Chapter 1/Question1_8/Question.java:12
↓ 4 callers
Method
isUnique
(int[] array)
java/Chapter 18/Question18_6/QuestionC.java:54
↓ 4 callers
Function
is_subtree_of
(t1,t2)
python/Chapter 4/Question4_8/ChapQ4.8.py:30
↓ 4 callers
Method
lazyInit
lazyInit lazily initializes a zero List value.
go/chapter02/list/list.go:95
↓ 4 callers
Method
length
()
java/CtCILibrary/CtCILibrary/BitVector.java:17
↓ 4 callers
Method
name
()
java/Chapter 3/Question3_7/Cat.java:8
↓ 4 callers
Method
negate
(int a)
java/Chapter 7/Question7_4/Question.java:5
↓ 4 callers
Method
pause
()
java/Chapter 16/Question16_3/Philosopher.java:48
↓ 4 callers
Method
peek
(self)
python/Chapter 3/Question3_5/3_5.py:68
↓ 4 callers
Method
peek
(int stackNum)
java/Chapter 3/Question3_1/Question.java:44
↓ 4 callers
Method
peek
()
java/Chapter 3/Question3_7/AnimalQueue.java:35
↓ 4 callers
Function
printStackAtAndPop
(s *SetOfStacks, stackNum int)
Go/Chapter 3/Question3_3/Question.go:97
↓ 4 callers
Method
push
(self, item)
python/Chapter 3/Question3_6/ChapQ3.6.py:4
↓ 4 callers
Method
push
(self, stacknum, value)
python/Chapter 3/Question3_1/Q3_1.py:11
↓ 4 callers
Method
push
(int stackNum, int value)
java/Chapter 3/Question3_1/Question.java:24
↓ 4 callers
Method
randomInt
(int n)
java/Chapter 7/Question7_3/Question.java:4
↓ 4 callers
Method
setLeft
(self, leftvalue)
python/Chapter 4/Question4_7/BinaryTreeNode.py:9
↓ 4 callers
Method
setLeft
(self, leftvalue)
python/Chapter 4/Question4_9/BinaryTreeNode.py:9
↓ 4 callers
Method
sign
(int a)
java/Chapter 17/Question17_4/Question.java:10
↓ 4 callers
Method
sort
(Stack<Integer> s)
java/Chapter 3/Question3_6/Question.java:60
↓ 4 callers
Method
stacktop
(self, stacknum)
python/Chapter 3/Question3_1/Q3_1.py:36
↓ 4 callers
Method
stringArrayToString
(String[] array)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:82
↓ 4 callers
Method
toString
()
java/Chapter 17/Question17_5/Question.java:19
↓ 4 callers
Method
wordAtLocation
(String[] words, int loc)
java/Chapter 18/Question18_5/Question.java:31
↓ 3 callers
Method
DecrementLen
()
Go/Chapter 2/list/list.go:55
↓ 3 callers
Method
IsEmpty
Returns false if the queue is empty i. e function used to identify whether the queue is empty
go/chapter04/queue/queue.go:126
↓ 3 callers
Method
Len
()
Go/Chapter 3/Question3_2/Question.go:23
↓ 3 callers
Method
Len
()
Go/Chapter 3/Question3_7/Question.go:115
↓ 3 callers
Method
Push
Push a new element onto the stack
Go/Chapter 3/stack/stack.go:29
↓ 3 callers
Method
addCard
(T card)
java/Chapter 8/Question8_1/Hand.java:16
↓ 3 callers
Function
addNodeInFront
(linkedlist, value)
python/Chapter 2/Question2_5.py:66
↓ 3 callers
Method
addUsingKey
(self, key)
python/Chapter 4/Question4_8/ChapQ4.8.py:126
↓ 3 callers
Method
clear
(Integer[] columns)
java/Chapter 9/Question9_9/Question.java:48
↓ 3 callers
Method
computeArea
()
java/Chapter 14/Introduction/Shape.java:8
↓ 3 callers
Function
cover
(root, n)
python/Chapter 4/Question4_7/Q4_7.py:22
↓ 3 callers
Method
declare
(int ownerId, int[] resourcesInOrder)
java/Chapter 16/Question16_4/LockFactory.java:54
↓ 3 callers
Method
empty
(self)
python/Chapter 3/Question3_6/ChapQ3.6.py:6
↓ 3 callers
Method
encode
(char[] input)
java/Chapter 17/Question17_10/QuestionString.java:19
↓ 3 callers
Method
fill
Set (x, y) and fill the surrounding area until the color changes.
python/Chapter 9/Question9_07/paint_fill.py:45
↓ 3 callers
Method
findElement
(int[][] matrix, Coordinate origin, Coordinate dest, int x)
java/Chapter 11/Question11_6/QuestionB.java:19
↓ 3 callers
Method
get
(int i)
java/CtCILibrary/CtCILibrary/BitVector.java:21
↓ 3 callers
Method
getBit
(int num, int i)
java/Chapter 5/Sample_Code/Sample_Code.java:7
↓ 3 callers
Function
getHeight
(t *binarytree.Tree)
go/chapter04/question4.1/question4_1.go:34
↓ 3 callers
Method
getInstance
()
java/Chapter 8/Question8_2/CallHandler.java:55
↓ 3 callers
Method
getLastStack
()
java/Chapter 3/Question3_3/SetOfStacks.java:13
↓ 3 callers
Method
getLastStack
()
Go/Chapter 3/Question3_3/Question.go:27
↓ 3 callers
Method
getLock
(int ownerId, int resourceID)
java/Chapter 16/Question16_4/LockFactory.java:91
↓ 3 callers
Method
getRank
()
java/Chapter 8/Question8_2/Call.java:31
↓ 3 callers
Method
getSize
()
java/Chapter 8/Question8_4/Vehicle.java:15
↓ 3 callers
Method
getToUser
()
java/Chapter 8/Question8_7/AddRequest.java:26
↓ 3 callers
Method
getValue
()
java/Chapter 8/Question8_2/Rank.java:14
↓ 3 callers
Method
hasNext
()
java/Chapter 14/Question14_6/CircularArray.java:47
↓ 3 callers
Method
hasNextTokens
(String... expectedTokens)
java/Chapter 17/Question17_10/QuestionString.java:111
↓ 3 callers
Method
insertInOrder
(int d)
java/CtCILibrary/CtCILibrary/TreeNode.java:32
↓ 3 callers
Function
isPalindrome
* Add the elements till the middle of LL to a stack and check the rest elements */
Go/Chapter 2/Question2_7/Question.go:12
↓ 3 callers
Method
linkedListToInt
(LinkedListNode node)
java/Chapter 2/Question2_5/QuestionA.java:32
↓ 3 callers
Method
linkedListToInt
(LinkedListNode node)
java/Chapter 2/Question2_5/QuestionB.java:63
↓ 3 callers
Method
make
Return a new Screen object, initialized with 'pixels'.
python/Chapter 9/Question9_07/paint_fill.py:24
↓ 3 callers
Method
min
()
java/Chapter 3/Question3_2/StackWithMin.java:11
↓ 3 callers
Method
min
()
java/Chapter 3/Question3_2/StackWithMin2.java:27
↓ 3 callers
Method
moveToFront
(Node node)
java/Chapter 10/Question10_7/Cache.java:16
↓ 3 callers
Method
next
()
java/Chapter 14/Question14_6/CircularArray.java:52
↓ 3 callers
Method
nextElement
(int index)
java/Chapter 3/Question3_1/QuestionB.java:47
↓ 3 callers
Method
nullifyColumn
(int[][] matrix, int col)
java/Chapter 1/Question1_7/Question.java:12
↓ 3 callers
Method
nullifyRow
(int[][] matrix, int row)
java/Chapter 1/Question1_7/Question.java:6
↓ 3 callers
Method
peak
(self)
python/Chapter 3/Question3_6/ChapQ3.6.py:2
← previous
next →
101–200 of 1,645, ranked by callers