MCPcopy Create free account

hub / github.com/careercup/ctci / functions

Functions1,645 in github.com/careercup/ctci

↓ 1 callersMethodSetOrder
(o int)
Go/Chapter 3/Question3_7/Question.go:20
↓ 1 callersFunctionWalk
Walk traverses a tree depth-first, sending each Value on a channel.
go/chapter04/binarytree/binarytree.go:37
↓ 1 callersFunction_isSubstring
(str1, str2)
javascript/lib/data-structures/chapter-1/1_8.js:2
↓ 1 callersFunction_sameLengthAndNotBlank
(str1, str2)
javascript/lib/data-structures/chapter-1/1_8.js:5
↓ 1 callersMethodaddCardToScoreList
(BlackJackCard card, ArrayList<Integer> scores)
java/Chapter 8/Question8_1/BlackJackHand.java:35
↓ 1 callersFunctionaddLists
Function to add the list
go/chapter02/question2.5/question2_5.go:39
↓ 1 callersMethodaddLists
( LinkedListNode l1, LinkedListNode l2, int carry)
java/Chapter 2/Question2_5/QuestionA.java:8
↓ 1 callersMethodaddLists
(LinkedListNode l1, LinkedListNode l2)
java/Chapter 2/Question2_5/QuestionB.java:26
↓ 1 callersFunctionaddListsB
* Input: (6->1->7) + (2->9->5). That is, 617 + 295. Output: 9->1->2. That is, 912. */ O(n) time and O(1) space
Go/Chapter 2/Question2_5/Question.go:73
↓ 1 callersFunctionaddListsFwd2Helper
(p1, p2)
python/Chapter 2/Question2_5.py:54
↓ 1 callersMethodaddListsHelper
(LinkedListNode l1, LinkedListNode l2)
java/Chapter 2/Question2_5/QuestionB.java:13
↓ 1 callersFunctionaddLists_fwd
(L1, L2)
python/Chapter 2/Question2_5.py:26
↓ 1 callersFunctionaddLists_fwd_2
(L1, L2)
python/Chapter 2/Question2_5.py:35
↓ 1 callersMethodaddNewNumber
(int randomNumber)
java/Chapter 18/Question18_9/Question.java:13
↓ 1 callersMethodaddNewNumberAndPrintMedian
(int randomNumber)
java/Chapter 18/Question18_9/Question.java:48
↓ 1 callersMethodaddNode
(Node x)
java/Chapter 4/Question4_2/Graph.java:11
↓ 1 callersMethodaddParen
(ArrayList<String> list, int leftRem, int rightRem, char[] str, int count)
java/Chapter 9/Question9_6/QuestionB.java:7
↓ 1 callersMethodaddUser
(User fromUser, String toAccountName)
java/Chapter 8/Question8_7/UserManager.java:20
↓ 1 callersMethodaddWord
(String s)
java/Chapter 18/Question18_13/WordGroup.java:20
↓ 1 callersFunctionallunique2
(s)
python/Chapter 1/Question1_1/alluniq.py:14
↓ 1 callersMethodanagram
(String s, String t)
java/Chapter 1/Question1_3/Question.java:14
↓ 1 callersFunctionanagram2
We just check if the counts of each character are the same
python/Chapter 1/Question1_3/anagram.py:9
↓ 1 callersMethodassignCall
(Employee emp)
java/Chapter 8/Question8_2/CallHandler.java:97
↓ 1 callersMethodavailableSpots
()
java/Chapter 8/Question8_4/Level.java:29
↓ 1 callersMethodbar
()
java/Chapter 14/Introduction/Introduction.java:26
↓ 1 callersMethodbar
(String name)
java/Chapter 16/IntroductionSynchronization/MyObject.java:14
↓ 1 callersMethodbinarySearch
(int[] a, int x)
java/Chapter 11/Introduction/BinarySearch.java:5
↓ 1 callersMethodbinarySearchRecursive
(int[] a, int x, int low, int high)
java/Chapter 11/Introduction/BinarySearch.java:23
↓ 1 callersMethodbinarySearchRecursiveClosest
(int[] a, int x, int low, int high)
java/Chapter 11/Introduction/BinarySearch.java:37
↓ 1 callersFunctionbinary_tree_to_list
(btree)
python/Chapter 4/Question4_4/ChapQ4.4.py:37
↓ 1 callersFunctionbinary_tree_to_list_of_linked_lists
(btree,depth=1,returnlist=[])
python/Chapter 4/Question4_4/ChapQ4.4.py:24
↓ 1 callersMethodbitSwapRequired
(int a, int b)
java/Chapter 5/Question5_5/Question.java:6
↓ 1 callersMethodbitSwapRequired2
(int a, int b)
java/Chapter 5/Question5_5/Question.java:14
↓ 1 callersMethodbruteForce
(String expression, HashMap<String, Boolean> completed, boolean result, boolean[] flags)
java/Chapter 9/Question9_11/Question.java:139
↓ 1 callersFunctionbuildList
()
Go/Chapter 2/Question2_4/Question.go:43
↓ 1 callersMethodbusted
()
java/Chapter 8/Question8_1/BlackJackHand.java:49
↓ 1 callersMethodcanBuildWord
(String str, boolean isOriginalWord, HashMap<String, Boolean> map)
java/Chapter 18/Question18_7/Question.java:22
↓ 1 callersMethodcanFitInSpot
(ParkingSpot spot)
java/Chapter 8/Question8_4/Car.java:9
↓ 1 callersMethodcharArrayToString
(char[] array)
java/CtCILibrary/CtCILibrary/AssortedMethods.java:152
↓ 1 callersFunctioncheckBST
(root,mini,maxi)
python/Chapter 4/Question4_5/ChapQ4.5.py:87
↓ 1 callersMethodcheckBST
(TreeNode n)
java/Chapter 4/Question4_5/Question.java:7
↓ 1 callersMethodcheckBST
(TreeNode n, Integer min, Integer max)
java/Chapter 4/Question4_5/QuestionB.java:7
↓ 1 callersFunctioncheckBSTApp
(tree)
python/Chapter 4/Question4_5/ChapQ4.5.py:96
↓ 1 callersMethodcheckDuplicates
(int[] array)
java/Chapter 10/Question10_4/Question.java:7
↓ 1 callersFunctioncheckHeight
(t *binarytree.Tree)
go/chapter04/question4.1/question4_1b.go:33
↓ 1 callersMethodcheckHeight
(TreeNode root)
java/Chapter 4/Question4_1/QuestionImproved.java:6
↓ 1 callersMethodcheckValid
(Integer[] columns, int row1, int column1)
java/Chapter 9/Question9_9/Question.java:13
↓ 1 callersFunctioncheck_balanced
(btree)
python/Chapter 4/Question4_1/ChapQ4.1.py:45
↓ 1 callersMethodchew
()
java/Chapter 16/Question16_3/Philosopher.java:43
↓ 1 callersMethodclean
(String str)
java/Chapter 17/Question17_14/Question.java:95
↓ 1 callersMethodclearArray
(int[] array)
java/Chapter 18/Question18_12/QuestionC.java:7
↓ 1 callersMethodclearBit
(int num, int i)
java/Chapter 5/Sample_Code/Sample_Code.java:15
↓ 1 callersMethodclearBitsIthrough0
(int num, int i)
java/Chapter 5/Sample_Code/Sample_Code.java:30
↓ 1 callersMethodclearBitsMSBthroughI
(int num, int i)
java/Chapter 5/Sample_Code/Sample_Code.java:25
↓ 1 callersMethodclearSpots
()
java/Chapter 8/Question8_4/Vehicle.java:25
↓ 1 callersMethodclone
()
java/CtCILibrary/CtCILibrary/LinkedListNode.java:41
↓ 1 callersMethodclone
()
java/Chapter 11/Question11_6/Coordinate.java:22
↓ 1 callersMethodcloneMatrix
(int[][] matrix)
java/Chapter 1/Question1_7/Question.java:117
↓ 1 callersFunctioncommonAncestor
(root, p, q)
python/Chapter 4/Question4_7/BinaryTreeNode.py:83
↓ 1 callersMethodcommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
java/Chapter 4/Question4_7/QuestionC.java:46
↓ 1 callersMethodcommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
java/Chapter 4/Question4_7/Question.java:21
↓ 1 callersMethodcommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
java/Chapter 4/Question4_7/QuestionB.java:25
↓ 1 callersFunctioncommonAncestor2_helper
(root, p, q)
python/Chapter 4/Question4_7/Q4_7.py:38
↓ 1 callersMethodcommonAncestorBad
(TreeNode root, TreeNode p, TreeNode q)
java/Chapter 4/Question4_7/QuestionCBad.java:6
↓ 1 callersFunctioncommonAncestorHelper
(root, p ,q)
python/Chapter 4/Question4_7/BinaryTreeNode.py:67
↓ 1 callersMethodcommonAncestorHelper
(TreeNode root, TreeNode p, TreeNode q)
java/Chapter 4/Question4_7/QuestionC.java:15
↓ 1 callersMethodcommonAncestorHelper
(TreeNode root, TreeNode p, TreeNode q)
java/Chapter 4/Question4_7/QuestionB.java:12
↓ 1 callersMethodcompare
helper function to compare matrices
Go/Chapter 1/Question1_6/Question.go:26
↓ 1 callersMethodcompare
helper function to compare matrices
Go/Chapter 1/Question1_7/Question.go:27
↓ 1 callersMethodcompareBinToHex
(String binary, String hex)
java/Introduction/CompareBinaryToHex/CompareBinaryToHex.java:30
↓ 1 callersFunctioncompress
(string)
python/Chapter 1/Question1_5/ChapQ1.5.py:57
↓ 1 callersFunctioncompress
method to perform basic string compression using the counts of repeated characters example "aabcccccaaa" => "a2b1c5a3" But, if the compressed string i
Go/Chapter 1/Question1_5/Question.go:21
↓ 1 callersMethodcompressAlternate
(String str)
java/Chapter 1/Question1_5/Question.java:77
↓ 1 callersMethodcompressBetter
(String str)
java/Chapter 1/Question1_5/Question.java:54
↓ 1 callersFunctioncompressString
Function to compress the string
go/chapter01/question1.5/question1_5.go:44
↓ 1 callersMethodcomputeByteNum
(int width, int x, int y)
java/Chapter 5/Question5_8/Question.java:6
↓ 1 callersMethodcomputeSum
(int[][] sumMatrix, int i1, int i2, int j1, int j2)
java/Chapter 18/Question18_12/QuestionB.java:48
↓ 1 callersMethodcontainsWord
(String s)
java/Chapter 18/Question18_13/WordGroup.java:16
↓ 1 callersMethodconvert
(BiNode root)
java/Chapter 17/Question17_13/QuestionA.java:14
↓ 1 callersMethodconvert
(BiNode root)
java/Chapter 17/Question17_13/QuestionC.java:77
↓ 1 callersMethodconvert
(BiNode root)
java/Chapter 17/Question17_13/QuestionB.java:5
↓ 1 callersMethodconvertBoardToInt
(char[][] board)
java/Chapter 17/Question17_2/Question.java:5
↓ 1 callersMethodconvertIntToPiece
(int i)
java/Chapter 17/Question17_2/QuestionB.java:197
↓ 1 callersMethodconvertIntToSet
(int x, ArrayList<Integer> set)
java/Chapter 9/Question9_4/Question.java:27
↓ 1 callersMethodconvertToCircular
(BiNode root)
java/Chapter 17/Question17_13/QuestionC.java:40
↓ 1 callersFunctioncopyBST
(root,arr)
python/Chapter 4/Question4_5/ChapQ4.5.py:101
↓ 1 callersMethodcount2sInRange
(int number)
java/Chapter 18/Question18_4/Question.java:22
↓ 1 callersMethodcount2sInRangeAtDigit
(int number, int d)
java/Chapter 18/Question18_4/Question.java:4
↓ 1 callersMethodcount2sR
(int n)
java/Chapter 18/Question18_4/Question.java:31
↓ 1 callersMethodcountDP
(String exp, boolean result, int start, int end, HashMap<String, Integer> cache)
java/Chapter 9/Question9_11/Question.java:211
↓ 1 callersMethodcountDPEff
(String exp, boolean result, int start, int end, HashMap<String, Integer> cache)
java/Chapter 9/Question9_11/Question.java:276
↓ 1 callersMethodcountEquivalentLines
(ArrayList<Line> lines, Line line)
java/Chapter 7/Question7_6/Question.java:10
↓ 1 callersMethodcountFactZeros
(int num)
java/Chapter 17/Question17_3/QuestionA.java:13
↓ 1 callersMethodcountFactZeros
(int num)
java/Chapter 17/Question17_3/QuestionB.java:4
↓ 1 callersMethodcountR
(String exp, boolean result, int start, int end)
java/Chapter 9/Question9_11/Question.java:169
↓ 1 callersFunctioncountSame
Helper function that counts number of same characters following a position
Go/Chapter 1/Question1_5/Question.go:7
↓ 1 callersFunctioncountSpaces
(str string)
Go/Chapter 1/Question1_4/Question_test.go:7
↓ 1 callersFunctioncountWays
(remaining)
javascript/lib/data-structures/chapter-9/9_1.js:14
↓ 1 callersMethodcountWaysDP
(int n, int[] map)
java/Chapter 9/Question9_1/Question.java:5
↓ 1 callersMethodcountWaysRecursive
(int n)
java/Chapter 9/Question9_1/Question.java:20
← previousnext →401–500 of 1,645, ranked by callers