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
↓ 2 callers
Method
magicSlow
(int[] array)
java/Chapter 9/Question9_3/QuestionB.java:9
↓ 2 callers
Method
makeChange
(int amount, int[] denoms, int index)
java/Chapter 9/Question9_8/Question.java:6
↓ 2 callers
Function
makeCharCountDict
(s)
python/Chapter 1/Question1_3/ChapQ1.3.py:23
↓ 2 callers
Function
make_random_balanced_tree
(depth)
python/Chapter 4/Question4_8/ChapQ4.8.py:42
↓ 2 callers
Method
maxValue
()
java/Chapter 8/Question8_1/BlackJackCard.java:26
↓ 2 callers
Method
minValue
()
java/Chapter 8/Question8_1/BlackJackCard.java:18
↓ 2 callers
Method
multiply
(int a, int b)
java/Chapter 7/Question7_4/Question.java:29
↓ 2 callers
Function
padInFront
(linkedlist, number)
python/Chapter 2/Question2_5.py:100
↓ 2 callers
Function
padList
helper function to pad the list with a different length with zeros
Go/Chapter 2/Question2_5/Question.go:96
↓ 2 callers
Method
padList
(LinkedListNode l, int padding)
java/Chapter 2/Question2_5/QuestionB.java:43
↓ 2 callers
Method
partition
(int[] array, int left, int right, int pivot)
java/Chapter 18/Question18_6/QuestionC.java:81
↓ 2 callers
Method
pause
()
java/Chapter 16/Question16_6/Foo.java:14
↓ 2 callers
Method
peek
(self, stacknum)
python/Chapter 3/Question3_1/Q3_1.py:27
↓ 2 callers
Method
pop
(self)
python/Chapter 3/Question3_5/ChapQ3.5.py:6
↓ 2 callers
Method
pop
(self, stacknum)
python/Chapter 3/Question3_1/Q3_1.py:18
↓ 2 callers
Method
pop
(self)
python/Chapter 3/Question3_3/Q3_3.py:12
↓ 2 callers
Method
pop
(int stackNum)
java/Chapter 3/Question3_1/Question.java:34
↓ 2 callers
Method
pop
(int stackNum)
java/Chapter 3/Question3_1/QuestionB.java:104
↓ 2 callers
Method
print
()
java/Chapter 8/Question8_4/ParkingLot.java:24
↓ 2 callers
Method
printBinary
(double num)
java/Chapter 5/Question5_2/Question.java:4
↓ 2 callers
Method
printBoard
()
java/Chapter 8/Question8_8/Board.java:124
↓ 2 callers
Method
printHandsAndScore
()
java/Chapter 8/Question8_1/BlackJackGameAutomator.java:98
↓ 2 callers
Method
printScores
()
java/Chapter 8/Question8_8/Automator.java:85
↓ 2 callers
Method
printSquare
(Square s)
java/Chapter 7/Question7_5/Question.java:14
↓ 2 callers
Method
printTowers
(self)
python/Chapter 3/Question3_4/Q3_4.py:23
↓ 2 callers
Method
push
(self, data)
python/Chapter 3/Question3_5/3_5.py:56
↓ 2 callers
Method
push
(self, value)
python/Chapter 3/Question3_2/ChapQ3.2.py:7
↓ 2 callers
Method
putDown
()
java/Chapter 16/Question16_3/Philosopher.java:57
↓ 2 callers
Method
rand
(int lower, int higher)
java/Chapter 18/Question18_2/Question.java:8
↓ 2 callers
Method
rand
(int lower, int higher)
java/Chapter 18/Question18_3/QuestionAlternate.java:8
↓ 2 callers
Method
rand5
()
java/Chapter 17/Question17_11/Question.java:13
↓ 2 callers
Method
rand5
()
java/Chapter 17/Question17_11/QuestionB.java:19
↓ 2 callers
Method
randomInt
(int n)
java/Chapter 18/Question18_1/Question.java:12
↓ 2 callers
Method
randomInt
(int n)
java/Chapter 9/Question9_7/Question.java:34
↓ 2 callers
Method
randomLinkedList
(int N, int min, int max)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:41
↓ 2 callers
Method
randomString
()
java/Chapter 17/Question17_5/Question.java:119
↓ 2 callers
Method
rebuild
Lazily rebuilds the front stack when a value is needed by pop/peek. When the front_stack empties, rebuild it by reversing the values
python/Chapter 3/Question3_5/3_5.py:29
↓ 2 callers
Method
receiveCall
(Call call)
java/Chapter 8/Question8_2/Employee.java:14
↓ 2 callers
Method
remainingCards
()
java/Chapter 8/Question8_1/Deck.java:28
↓ 2 callers
Method
remove
(LockNode node)
java/Chapter 16/Question16_4/LockNode.java:29
↓ 2 callers
Method
removeAddRequest
(AddRequest req)
java/Chapter 8/Question8_7/User.java:75
↓ 2 callers
Method
removeFromLinkedList
(Node node)
java/Chapter 10/Question10_7/Cache.java:38
↓ 2 callers
Method
reply
(String message)
java/Chapter 8/Question8_2/Call.java:27
↓ 2 callers
Function
reverseStringRecursive
(str1)
python/Chapter 1/Question1_2/ChapQ1.2.py:5
↓ 2 callers
Method
rotate
(int shiftRight)
java/Chapter 14/Question14_6/CircularArray.java:20
↓ 2 callers
Method
score
()
java/Chapter 8/Question8_1/Hand.java:8
↓ 2 callers
Method
seqWithMaxLength
(ArrayList<HtWt> seq1, ArrayList<HtWt> seq2)
java/Chapter 11/Question11_7/Question.java:9
↓ 2 callers
Method
setChar
(char[] array, char c, int index, int count)
java/Chapter 1/Question1_5/Question.java:5
↓ 2 callers
Method
setLeftChild
(TreeNode left)
java/CtCILibrary/CtCILibrary/TreeNode.java:18
↓ 2 callers
Method
setRightChild
(TreeNode right)
java/CtCILibrary/CtCILibrary/TreeNode.java:25
↓ 2 callers
Method
setStatus
(UserStatus status)
java/Chapter 8/Question8_7/User.java:44
↓ 2 callers
Method
shiftStacks
()
java/Chapter 3/Question3_5/MyQueue.java:25
↓ 2 callers
Function
showAsMatrix
(mat)
python/Chapter 1/Question1_6/rotateimg.py:1
↓ 2 callers
Function
simpleCompress
(compstring)
python/Chapter 1/Question1_5/ChapQ1.5.py:8
↓ 2 callers
Method
sortChars
(String s)
java/Chapter 11/Question11_2/AnagramComparator.java:7
↓ 2 callers
Method
stackHeight
(ArrayList<Box> boxes)
java/Chapter 9/Question9_10/Question.java:8
↓ 2 callers
Method
test
(String guess, String solution)
java/Chapter 17/Question17_5/Question.java:133
↓ 2 callers
Method
toString
()
java/Chapter 8/Question8_10/Cell.java:19
↓ 2 callers
Method
toString
()
java/Chapter 7/Question7_5/Line.java:11
↓ 2 callers
Method
toString
()
java/Chapter 7/Question7_6/GraphPoint.java:11
↓ 2 callers
Method
value
()
java/Chapter 8/Question8_1/BlackJackCard.java:8
↓ 2 callers
Method
waitUntilDone
()
java/Chapter 16/IntroductionLocks/MyClass.java:38
↓ 2 callers
Method
withdraw
(int value)
java/Chapter 16/IntroductionLocks/NoLockATM.java:12
↓ 1 callers
Method
Back
Back returns the last element of list l or nil.
go/chapter02/list/list.go:87
↓ 1 callers
Method
DeQueue
()
Go/Chapter 3/Question3_5/Question.go:28
↓ 1 callers
Method
EnQueue
(data int)
Go/Chapter 3/Question3_5/Question.go:20
↓ 1 callers
Method
FindBeginning
(LinkedListNode head)
java/Chapter 2/Question2_6/Question.java:7
↓ 1 callers
Function
InOrderTraverse
Traverse the tree using in-order traversal
go/chapter04/binarytree/binarytree.go:104
↓ 1 callers
Method
Init
Init initializes or clears list l.
go/chapter02/stack/stack.go:21
↓ 1 callers
Method
InsertAfter
InsertAfter inserts a new element e with value v immediately after mark and returns e. If mark is not an element of l, the list is not modified.
go/chapter02/list/list.go:172
↓ 1 callers
Method
InsertBefore
InsertBefore inserts a new element e with value v immediately before mark and returns e. If mark is not an element of l, the list is not modified.
go/chapter02/list/list.go:162
↓ 1 callers
Method
Len
Returns the number of elements in the queue (i.e. size/length) go-routine safe.
go/chapter04/queue/queue.go:60
↓ 1 callers
Method
Len
()
Go/Chapter 3/list/list.go:69
↓ 1 callers
Method
Length
()
go/chapter02/stack/stack.go:27
↓ 1 callers
Method
Min
()
Go/Chapter 3/Question3_2/Question.go:59
↓ 1 callers
Method
MoveDisks
(n int, helper *Tower, target *Tower)
Go/Chapter 3/Question3_4/Question.go:23
↓ 1 callers
Method
MoveOne
(n int, helper *Tower, target *Tower)
Go/Chapter 3/Question3_4/Question.go:33
↓ 1 callers
Function
New
Creates a new pointer to a new queue.
go/chapter04/queue/queue.go:52
↓ 1 callers
Function
New
New returns an initialized list.
go/chapter02/stack/stack.go:18
↓ 1 callers
Function
NewMinimalHeightBST
NewMinimalHeightBST gives the minimal height tree from the given sorted array
go/chapter04/binarytree/binarytree.go:91
↓ 1 callers
Function
NewMyQueue
()
Go/Chapter 3/Question3_5/Question.go:43
↓ 1 callers
Function
NewShelter
()
Go/Chapter 3/Question3_7/Question.go:74
↓ 1 callers
Function
NewTree
New returns a new, empty binary tree
go/chapter04/binarytree/binarytree.go:86
↓ 1 callers
Method
Order
()
Go/Chapter 3/Question3_7/Question.go:23
↓ 1 callers
Method
Order
()
Go/Chapter 3/Question3_7/Question.go:42
↓ 1 callers
Method
PaintFill
(Color[][] screen, int x, int y, Color ocolor, Color ncolor)
java/Chapter 9/Question9_7/Question.java:38
↓ 1 callers
Method
Peek
()
Go/Chapter 3/Question3_2/Question.go:52
↓ 1 callers
Method
Pop
Remove the top element from the stack and return it's value If the stack is empty, return nil
Go/Chapter 2/stack/stack.go:26
↓ 1 callers
Method
PopAt
(stackNum int)
Go/Chapter 3/Question3_3/Question.go:61
↓ 1 callers
Method
Prev
Prev returns the previous list element or nil.
go/chapter02/list/list.go:49
↓ 1 callers
Method
PrintColor
(Color c)
java/Chapter 9/Question9_7/Question.java:9
↓ 1 callers
Method
Push
Push a new element onto the stack
Go/Chapter 2/stack/stack.go:19
↓ 1 callers
Method
PushBackList
PushBackList inserts a copy of an other list at the back of list l. The lists l and other may be the same.
go/chapter02/list/list.go:220
↓ 1 callers
Function
RandIntBetween
* Helper function to get a random integer (min, max)*/
Go/Chapter 3/stack/stack.go:53
↓ 1 callers
Function
RandIntBetween
* Helper function to get a random integer (min, max)*/
Go/Chapter 3/list/list.go:73
↓ 1 callers
Function
RandIntBetween
* Helper function to get a random integer (min, max)*/
Go/Chapter 2/list/list.go:59
↓ 1 callers
Function
RandomLinkedList
* Get a random linked list of N elements with data in range (min, max) */
Go/Chapter 3/list/list.go:77
↓ 1 callers
Function
RandomLinkedList
* Get a random linked list of N elements with data in range (min, max) */
Go/Chapter 2/list/list.go:63
↓ 1 callers
Method
RemoveInPlace
(e *Element)
go/chapter02/list/list.go:129
↓ 1 callers
Function
ReplaceSpace
method to replace all spaces in a string with ‘%20’ assuming that the string has sufficient space at the end
Go/Chapter 1/Question1_4/Question.go:5
← previous
next →
301–400 of 1,645, ranked by callers