MCPcopy Create free account

hub / github.com/careercup/ctci / functions

Functions1,645 in github.com/careercup/ctci

↓ 2 callersMethodmagicSlow
(int[] array)
java/Chapter 9/Question9_3/QuestionB.java:9
↓ 2 callersMethodmakeChange
(int amount, int[] denoms, int index)
java/Chapter 9/Question9_8/Question.java:6
↓ 2 callersFunctionmakeCharCountDict
(s)
python/Chapter 1/Question1_3/ChapQ1.3.py:23
↓ 2 callersFunctionmake_random_balanced_tree
(depth)
python/Chapter 4/Question4_8/ChapQ4.8.py:42
↓ 2 callersMethodmaxValue
()
java/Chapter 8/Question8_1/BlackJackCard.java:26
↓ 2 callersMethodminValue
()
java/Chapter 8/Question8_1/BlackJackCard.java:18
↓ 2 callersMethodmultiply
(int a, int b)
java/Chapter 7/Question7_4/Question.java:29
↓ 2 callersFunctionpadInFront
(linkedlist, number)
python/Chapter 2/Question2_5.py:100
↓ 2 callersFunctionpadList
helper function to pad the list with a different length with zeros
Go/Chapter 2/Question2_5/Question.go:96
↓ 2 callersMethodpadList
(LinkedListNode l, int padding)
java/Chapter 2/Question2_5/QuestionB.java:43
↓ 2 callersMethodpartition
(int[] array, int left, int right, int pivot)
java/Chapter 18/Question18_6/QuestionC.java:81
↓ 2 callersMethodpause
()
java/Chapter 16/Question16_6/Foo.java:14
↓ 2 callersMethodpeek
(self, stacknum)
python/Chapter 3/Question3_1/Q3_1.py:27
↓ 2 callersMethodpop
(self)
python/Chapter 3/Question3_5/ChapQ3.5.py:6
↓ 2 callersMethodpop
(self, stacknum)
python/Chapter 3/Question3_1/Q3_1.py:18
↓ 2 callersMethodpop
(self)
python/Chapter 3/Question3_3/Q3_3.py:12
↓ 2 callersMethodpop
(int stackNum)
java/Chapter 3/Question3_1/Question.java:34
↓ 2 callersMethodpop
(int stackNum)
java/Chapter 3/Question3_1/QuestionB.java:104
↓ 2 callersMethodprint
()
java/Chapter 8/Question8_4/ParkingLot.java:24
↓ 2 callersMethodprintBinary
(double num)
java/Chapter 5/Question5_2/Question.java:4
↓ 2 callersMethodprintBoard
()
java/Chapter 8/Question8_8/Board.java:124
↓ 2 callersMethodprintHandsAndScore
()
java/Chapter 8/Question8_1/BlackJackGameAutomator.java:98
↓ 2 callersMethodprintScores
()
java/Chapter 8/Question8_8/Automator.java:85
↓ 2 callersMethodprintSquare
(Square s)
java/Chapter 7/Question7_5/Question.java:14
↓ 2 callersMethodprintTowers
(self)
python/Chapter 3/Question3_4/Q3_4.py:23
↓ 2 callersMethodpush
(self, data)
python/Chapter 3/Question3_5/3_5.py:56
↓ 2 callersMethodpush
(self, value)
python/Chapter 3/Question3_2/ChapQ3.2.py:7
↓ 2 callersMethodputDown
()
java/Chapter 16/Question16_3/Philosopher.java:57
↓ 2 callersMethodrand
(int lower, int higher)
java/Chapter 18/Question18_2/Question.java:8
↓ 2 callersMethodrand
(int lower, int higher)
java/Chapter 18/Question18_3/QuestionAlternate.java:8
↓ 2 callersMethodrand5
()
java/Chapter 17/Question17_11/Question.java:13
↓ 2 callersMethodrand5
()
java/Chapter 17/Question17_11/QuestionB.java:19
↓ 2 callersMethodrandomInt
(int n)
java/Chapter 18/Question18_1/Question.java:12
↓ 2 callersMethodrandomInt
(int n)
java/Chapter 9/Question9_7/Question.java:34
↓ 2 callersMethodrandomLinkedList
(int N, int min, int max)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:41
↓ 2 callersMethodrandomString
()
java/Chapter 17/Question17_5/Question.java:119
↓ 2 callersMethodrebuild
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 callersMethodreceiveCall
(Call call)
java/Chapter 8/Question8_2/Employee.java:14
↓ 2 callersMethodremainingCards
()
java/Chapter 8/Question8_1/Deck.java:28
↓ 2 callersMethodremove
(LockNode node)
java/Chapter 16/Question16_4/LockNode.java:29
↓ 2 callersMethodremoveAddRequest
(AddRequest req)
java/Chapter 8/Question8_7/User.java:75
↓ 2 callersMethodremoveFromLinkedList
(Node node)
java/Chapter 10/Question10_7/Cache.java:38
↓ 2 callersMethodreply
(String message)
java/Chapter 8/Question8_2/Call.java:27
↓ 2 callersFunctionreverseStringRecursive
(str1)
python/Chapter 1/Question1_2/ChapQ1.2.py:5
↓ 2 callersMethodrotate
(int shiftRight)
java/Chapter 14/Question14_6/CircularArray.java:20
↓ 2 callersMethodscore
()
java/Chapter 8/Question8_1/Hand.java:8
↓ 2 callersMethodseqWithMaxLength
(ArrayList<HtWt> seq1, ArrayList<HtWt> seq2)
java/Chapter 11/Question11_7/Question.java:9
↓ 2 callersMethodsetChar
(char[] array, char c, int index, int count)
java/Chapter 1/Question1_5/Question.java:5
↓ 2 callersMethodsetLeftChild
(TreeNode left)
java/CtCILibrary/CtCILibrary/TreeNode.java:18
↓ 2 callersMethodsetRightChild
(TreeNode right)
java/CtCILibrary/CtCILibrary/TreeNode.java:25
↓ 2 callersMethodsetStatus
(UserStatus status)
java/Chapter 8/Question8_7/User.java:44
↓ 2 callersMethodshiftStacks
()
java/Chapter 3/Question3_5/MyQueue.java:25
↓ 2 callersFunctionshowAsMatrix
(mat)
python/Chapter 1/Question1_6/rotateimg.py:1
↓ 2 callersFunctionsimpleCompress
(compstring)
python/Chapter 1/Question1_5/ChapQ1.5.py:8
↓ 2 callersMethodsortChars
(String s)
java/Chapter 11/Question11_2/AnagramComparator.java:7
↓ 2 callersMethodstackHeight
(ArrayList<Box> boxes)
java/Chapter 9/Question9_10/Question.java:8
↓ 2 callersMethodtest
(String guess, String solution)
java/Chapter 17/Question17_5/Question.java:133
↓ 2 callersMethodtoString
()
java/Chapter 8/Question8_10/Cell.java:19
↓ 2 callersMethodtoString
()
java/Chapter 7/Question7_5/Line.java:11
↓ 2 callersMethodtoString
()
java/Chapter 7/Question7_6/GraphPoint.java:11
↓ 2 callersMethodvalue
()
java/Chapter 8/Question8_1/BlackJackCard.java:8
↓ 2 callersMethodwaitUntilDone
()
java/Chapter 16/IntroductionLocks/MyClass.java:38
↓ 2 callersMethodwithdraw
(int value)
java/Chapter 16/IntroductionLocks/NoLockATM.java:12
↓ 1 callersMethodBack
Back returns the last element of list l or nil.
go/chapter02/list/list.go:87
↓ 1 callersMethodDeQueue
()
Go/Chapter 3/Question3_5/Question.go:28
↓ 1 callersMethodEnQueue
(data int)
Go/Chapter 3/Question3_5/Question.go:20
↓ 1 callersMethodFindBeginning
(LinkedListNode head)
java/Chapter 2/Question2_6/Question.java:7
↓ 1 callersFunctionInOrderTraverse
Traverse the tree using in-order traversal
go/chapter04/binarytree/binarytree.go:104
↓ 1 callersMethodInit
Init initializes or clears list l.
go/chapter02/stack/stack.go:21
↓ 1 callersMethodInsertAfter
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 callersMethodInsertBefore
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 callersMethodLen
Returns the number of elements in the queue (i.e. size/length) go-routine safe.
go/chapter04/queue/queue.go:60
↓ 1 callersMethodLen
()
Go/Chapter 3/list/list.go:69
↓ 1 callersMethodLength
()
go/chapter02/stack/stack.go:27
↓ 1 callersMethodMin
()
Go/Chapter 3/Question3_2/Question.go:59
↓ 1 callersMethodMoveDisks
(n int, helper *Tower, target *Tower)
Go/Chapter 3/Question3_4/Question.go:23
↓ 1 callersMethodMoveOne
(n int, helper *Tower, target *Tower)
Go/Chapter 3/Question3_4/Question.go:33
↓ 1 callersFunctionNew
Creates a new pointer to a new queue.
go/chapter04/queue/queue.go:52
↓ 1 callersFunctionNew
New returns an initialized list.
go/chapter02/stack/stack.go:18
↓ 1 callersFunctionNewMinimalHeightBST
NewMinimalHeightBST gives the minimal height tree from the given sorted array
go/chapter04/binarytree/binarytree.go:91
↓ 1 callersFunctionNewMyQueue
()
Go/Chapter 3/Question3_5/Question.go:43
↓ 1 callersFunctionNewShelter
()
Go/Chapter 3/Question3_7/Question.go:74
↓ 1 callersFunctionNewTree
New returns a new, empty binary tree
go/chapter04/binarytree/binarytree.go:86
↓ 1 callersMethodOrder
()
Go/Chapter 3/Question3_7/Question.go:23
↓ 1 callersMethodOrder
()
Go/Chapter 3/Question3_7/Question.go:42
↓ 1 callersMethodPaintFill
(Color[][] screen, int x, int y, Color ocolor, Color ncolor)
java/Chapter 9/Question9_7/Question.java:38
↓ 1 callersMethodPeek
()
Go/Chapter 3/Question3_2/Question.go:52
↓ 1 callersMethodPop
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 callersMethodPopAt
(stackNum int)
Go/Chapter 3/Question3_3/Question.go:61
↓ 1 callersMethodPrev
Prev returns the previous list element or nil.
go/chapter02/list/list.go:49
↓ 1 callersMethodPrintColor
(Color c)
java/Chapter 9/Question9_7/Question.java:9
↓ 1 callersMethodPush
Push a new element onto the stack
Go/Chapter 2/stack/stack.go:19
↓ 1 callersMethodPushBackList
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 callersFunctionRandIntBetween
* Helper function to get a random integer (min, max)*/
Go/Chapter 3/stack/stack.go:53
↓ 1 callersFunctionRandIntBetween
* Helper function to get a random integer (min, max)*/
Go/Chapter 3/list/list.go:73
↓ 1 callersFunctionRandIntBetween
* Helper function to get a random integer (min, max)*/
Go/Chapter 2/list/list.go:59
↓ 1 callersFunctionRandomLinkedList
* Get a random linked list of N elements with data in range (min, max) */
Go/Chapter 3/list/list.go:77
↓ 1 callersFunctionRandomLinkedList
* Get a random linked list of N elements with data in range (min, max) */
Go/Chapter 2/list/list.go:63
↓ 1 callersMethodRemoveInPlace
(e *Element)
go/chapter02/list/list.go:129
↓ 1 callersFunctionReplaceSpace
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
← previousnext →301–400 of 1,645, ranked by callers