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
↓ 3 callers
Method
previousElement
(int index)
java/Chapter 3/Question3_1/QuestionB.java:55
↓ 3 callers
Function
printStackTopAndPop
(stackNum int)
Go/Chapter 3/Question3_1/Question.go:79
↓ 3 callers
Function
push
( stackNum, val int )
Go/Chapter 3/Question3_1/Question.go:25
↓ 3 callers
Method
refreshPage
()
java/Chapter 8/Question8_5/Display.java:34
↓ 3 callers
Function
reverseLinkedlist
(linkedlist)
python/Chapter 2/Question2_5.py:80
↓ 3 callers
Function
reverseList
(l *list.List)
Go/Chapter 2/Question2_5/Question.go:81
↓ 3 callers
Function
rotatedStringHasSubstring
(s1,s2)
python/Chapter 1/Question1_8/ChapQ1.8.py:8
↓ 3 callers
Method
setRight
(self, rightvalue)
python/Chapter 4/Question4_7/BinaryTreeNode.py:15
↓ 3 callers
Method
setRight
(self, rightvalue)
python/Chapter 4/Question4_9/BinaryTreeNode.py:15
↓ 3 callers
Method
toString
()
java/Chapter 8/Question8_3/Song.java:5
↓ 3 callers
Method
toString
()
java/Chapter 11/Question11_7/HtWt.java:17
↓ 3 callers
Method
total
(int n)
java/Chapter 9/Question9_11/Question.java:258
↓ 2 callers
Method
Add
(i int)
Go/Chapter 3/Question3_4/Question.go:41
↓ 2 callers
Method
Front
()
Go/Chapter 3/list/list.go:59
↓ 2 callers
Method
Init
Init initializes or clears list l.
go/chapter02/list/list.go:64
↓ 2 callers
Method
Poll
removes the head and returns its value
Go/Chapter 3/list/list.go:63
↓ 2 callers
Method
Pop
()
go/chapter02/stack/stack.go:44
↓ 2 callers
Method
Pop
Remove the top element from the stack and return it's value If the stack is empty, return nil
Go/Chapter 3/stack/stack.go:36
↓ 2 callers
Method
Pop
()
Go/Chapter 3/Question3_3/Question.go:46
↓ 2 callers
Method
PrintScreen
(Color[][] screen)
java/Chapter 9/Question9_7/Question.java:25
↓ 2 callers
Method
Push
(val int)
Go/Chapter 3/Question3_3/Question.go:33
↓ 2 callers
Method
PushBack
(v interface{})
Go/Chapter 3/list/list.go:37
↓ 2 callers
Method
PushFront
PushFront inserts a new Node with value v at the front of list l
Go/Chapter 3/list/list.go:26
↓ 2 callers
Method
Remove
Remove removes e from l if e is an element of list l. It returns the element value e.Value.
go/chapter02/list/list.go:139
↓ 2 callers
Function
SortString
(s string)
Go/Chapter 1/Question1_3/Question.go:19
↓ 2 callers
Function
Walker
Walker launches Walk in a new goroutine, and returns a read-only channel of values.
go/chapter04/binarytree/binarytree.go:48
↓ 2 callers
Method
add
(T value)
java/Chapter 3/Question3_5/MyQueue.java:17
↓ 2 callers
Method
addContact
(User user)
java/Chapter 8/Question8_7/User.java:52
↓ 2 callers
Function
addListsA
O(n) time with O(1) space by overwriting one of the original lists.
Go/Chapter 2/Question2_5/Question.go:28
↓ 2 callers
Function
addLists_rev
(L1, L2)
python/Chapter 2/Question2_5.py:5
↓ 2 callers
Method
addMessage
(Message m)
java/Chapter 8/Question8_7/Conversation.java:14
↓ 2 callers
Method
addProducts
(Queue<Integer> q, int v)
java/Chapter 7/Question7_7/QuestionA.java:21
↓ 2 callers
Method
addUsingKey
(self, key)
python/Chapter 4/Question4_5/ChapQ4.5.py:68
↓ 2 callers
Method
addWord
(String word)
java/CtCILibrary/CtCILibrary/TrieNode.java:49
↓ 2 callers
Method
assignNewCall
()
java/Chapter 8/Question8_2/Employee.java:51
↓ 2 callers
Function
buildListWithDuplicates
()
Go/Chapter 2/Question2_1/Question.go:53
↓ 2 callers
Method
canBeAbove
(Box b)
java/Chapter 9/Question9_10/Box.java:20
↓ 2 callers
Method
canFitVehicle
(Vehicle vehicle)
java/Chapter 8/Question8_4/ParkingSpot.java:23
↓ 2 callers
Function
changeSpacesForURL
(spacestring)
python/Chapter 1/Question1_4/ChapQ1.4.py:32
↓ 2 callers
Method
code
(char c)
java/Chapter 17/Question17_5/Question.java:24
↓ 2 callers
Method
concat
(BiNode x, BiNode y)
java/Chapter 17/Question17_13/QuestionA.java:33
↓ 2 callers
Method
concat
(BiNode x, BiNode y)
java/Chapter 17/Question17_13/QuestionB.java:35
↓ 2 callers
Method
containsTree
(TreeNode t1, TreeNode t2)
java/Chapter 4/Question4_8/Question.java:10
↓ 2 callers
Method
convertToBase
(String number, int base)
java/Introduction/CompareBinaryToHex/CompareBinaryToHex.java:16
↓ 2 callers
Function
countSame
(string, pos)
python/Chapter 1/Question1_5/ChapQ1.5.py:47
↓ 2 callers
Method
covers
(TreeNode root, TreeNode p, TreeNode q)
java/Chapter 4/Question4_7/Question.java:11
↓ 2 callers
Method
deposit
(int value)
java/Chapter 16/IntroductionLocks/NoLockATM.java:23
↓ 2 callers
Method
dequeueCat
()
Go/Chapter 3/Question3_7/Question.go:112
↓ 2 callers
Method
dequeueDog
()
Go/Chapter 3/Question3_7/Question.go:109
↓ 2 callers
Method
doTest
(Square s1, Square s2, Point start, Point end)
java/Chapter 7/Question7_5/Question.java:30
↓ 2 callers
Method
drawLine
()
java/Chapter 9/Question9_9/Question.java:71
↓ 2 callers
Method
empty
(self)
python/Chapter 3/Question3_5/ChapQ3.5.py:18
↓ 2 callers
Method
encodeEnd
(StringBuffer sb)
java/Chapter 17/Question17_10/QuestionOO.java:12
↓ 2 callers
Method
equivalent
(Cell<K, V> c)
java/Chapter 8/Question8_10/Cell.java:11
↓ 2 callers
Method
factorial
(int num)
java/Chapter 17/Question17_3/QuestionA.java:21
↓ 2 callers
Method
find_tallest
Return a sorted list with the Boxes that build the highest Stack.
python/Chapter 9/Question9_10/tallest_stack.py:78
↓ 2 callers
Method
floorToNearestEpsilon
(double d)
java/Chapter 7/Question7_6/Line.java:28
↓ 2 callers
Method
getChild
(char c)
java/CtCILibrary/CtCILibrary/TrieNode.java:76
↓ 2 callers
Method
getColumn
(int i)
java/Chapter 18/Question18_13/Rectangle.java:34
↓ 2 callers
Method
getColumn
()
java/Chapter 8/Question8_8/Location.java:19
↓ 2 callers
Method
getFromQueue
(self)
python/Chapter 1/Question1_4/ChapQ1.4.py:17
↓ 2 callers
Method
getHeight
(TreeNode root)
java/Chapter 4/Question4_1/QuestionBrute.java:8
↓ 2 callers
Method
getID
()
java/Chapter 8/Question8_5/User.java:17
↓ 2 callers
Method
getInstance
()
java/Chapter 8/Question8_8/Automator.java:23
↓ 2 callers
Method
getIthColor
(Piece[][] board, int index, int var, Check check)
java/Chapter 17/Question17_2/QuestionB.java:16
↓ 2 callers
Method
getListOfWords
()
java/CtCILibrary/CtCILibrary/AssortedMethods.java:227
↓ 2 callers
Method
getLongTextBlobAsStringList
()
java/CtCILibrary/CtCILibrary/AssortedMethods.java:219
↓ 2 callers
Method
getMax
(int a, int b)
java/Chapter 17/Question17_4/Question.java:20
↓ 2 callers
Method
getMaxNaive
(int a, int b)
java/Chapter 17/Question17_4/Question.java:14
↓ 2 callers
Method
getName
()
java/Chapter 8/Question8_10/Dummy.java:20
↓ 2 callers
Method
getNodes
()
java/Chapter 4/Question4_2/Graph.java:20
↓ 2 callers
Method
getRank
(int d)
java/Chapter 11/Question11_8/RankNode.java:29
↓ 2 callers
Method
getRow
()
java/Chapter 8/Question8_8/Location.java:15
↓ 2 callers
Method
getSpotsNeeded
()
java/Chapter 8/Question8_4/Vehicle.java:11
↓ 2 callers
Method
getTagCode
(String tag)
java/Chapter 17/Question17_10/QuestionString.java:159
↓ 2 callers
Method
get_min
(self)
python/Chapter 3/Question3_2/ChapQ3.2.py:17
↓ 2 callers
Method
hashCodeOfKey
(K key)
java/Chapter 8/Question8_10/Hash.java:13
↓ 2 callers
Method
inbounds
(int[][] matrix)
java/Chapter 11/Question11_6/Coordinate.java:11
↓ 2 callers
Method
index
()
java/Chapter 3/Question3_4/Tower.java:13
↓ 2 callers
Method
initialize
()
java/Chapter 8/Question8_8/Board.java:12
↓ 2 callers
Method
insertBefore
(LinkedListNode list, int data)
java/Chapter 2/Question2_5/QuestionB.java:54
↓ 2 callers
Function
int_array_to_binary_search_tree
(intarray)
python/Chapter 4/Question4_3/ChapQ4.3.py:15
↓ 2 callers
Function
isBTaBST
(t *binarytree.Tree, min int, max int)
go/chapter04/question4.5/question4_5.go:34
↓ 2 callers
Function
isBalanced
(t *binarytree.Tree)
go/chapter04/question4.1/question4_1b.go:55
↓ 2 callers
Method
isBalanced
(TreeNode root)
java/Chapter 4/Question4_1/QuestionImproved.java:28
↓ 2 callers
Method
isBalanced
(TreeNode root)
java/Chapter 4/Question4_1/QuestionBrute.java:15
↓ 2 callers
Method
isBefore
(Coordinate p)
java/Chapter 11/Question11_6/Coordinate.java:18
↓ 2 callers
Function
isEmpty
( stackNum int )
Go/Chapter 3/Question3_1/Question.go:22
↓ 2 callers
Method
isEmpty
(int stackNum)
java/Chapter 3/Question3_1/Question.java:51
↓ 2 callers
Method
isFaceCard
()
java/Chapter 8/Question8_1/BlackJackCard.java:38
↓ 2 callers
Method
isFree
()
java/Chapter 8/Question8_2/Employee.java:59
↓ 2 callers
Method
isFree
(int x, int y)
java/Chapter 9/Question9_2/QuestionDP.java:13
↓ 2 callers
Method
isOlderThan
(Animal a)
java/Chapter 3/Question3_7/Animal.java:20
↓ 2 callers
Function
isPalindrome_iter
(linkedlist)
python/Chapter 2/Question2_7.py:4
↓ 2 callers
Function
isPalindrome_recu
(linkedlist)
python/Chapter 2/Question2_7.py:25
↓ 2 callers
Method
is_inside
Check whether the pixel (x, y) falls within the Screen.
python/Chapter 9/Question9_07/paint_fill.py:41
↓ 2 callers
Method
length
(LinkedListNode l)
java/Chapter 2/Question2_5/QuestionB.java:5
↓ 2 callers
Function
lengthOfLinkedlist
(linkedlist)
python/Chapter 2/Question2_5.py:90
↓ 2 callers
Method
listOfPointsToString
(ArrayList<Point> list)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:163
↓ 2 callers
Method
magicSlow
(int[] array)
java/Chapter 9/Question9_3/Question.java:9
← previous
next →
201–300 of 1,645, ranked by callers