Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/CtCI-6th-Edition
/ functions
Functions
2,047 in github.com/careercup/CtCI-6th-Edition
⨍
Functions
2,047
◇
Types & classes
609
↓ 1 callers
Method
canFitInSpot
(ParkingSpot spot)
Java/Ch 07. Object-Oriented Design/Q7_04_Parking_Lot/Car.java:9
↓ 1 callers
Method
canonical
(String pattern)
Java/Ch 16. Moderate/Q16_18_Pattern_Matcher/QuestionB.java:32
↓ 1 callers
Method
charArrayToString
(char[] array)
Java/CtCILibrary/CtCILibrary/AssortedMethods.java:169
↓ 1 callers
Method
checkAtMostOneBitSet
(int bitVector)
Java/Ch 01. Arrays and Strings/Q1_04_Palindrome_Permutation/QuestionC.java:30
↓ 1 callers
Method
checkBST
(TreeNode n, Integer min, Integer max)
Java/Ch 04. Trees and Graphs/Q4_05_Validate_BST/QuestionB.java:7
↓ 1 callers
Method
checkDuplicates
(int[] array)
Java/Ch 10. Sorting and Searching/Q10_08_Find_Duplicates/Question.java:7
↓ 1 callers
Method
checkHeight
(TreeNode root)
Java/Ch 04. Trees and Graphs/Q4_04_Check_Balanced/QuestionImproved.java:6
↓ 1 callers
Method
checkMaxOneOdd
(int[] table)
Java/Ch 01. Arrays and Strings/Q1_04_Palindrome_Permutation/QuestionA.java:4
↓ 1 callers
Method
checkRange
(int start, int range)
Java/Ch 05. Bit Manipulation/Q5_03_Flip_Bit_to_Win/Tester.java:5
↓ 1 callers
Method
checkValid
(Integer[] columns, int row1, int column1)
Java/Ch 08. Recursion and Dynamic Programming/Q8_12_Eight_Queens/Question.java:13
↓ 1 callers
Method
chew
()
Java/Ch 15. Threads and Locks/Q15_03_Dining_Philosophers/QuestionA/Philosopher.java:43
↓ 1 callers
Method
chew
()
Java/Ch 15. Threads and Locks/Q15_03_Dining_Philosophers/QuestionB/Philosopher.java:39
↓ 1 callers
Method
clean
(String str)
Java/Ch 17. Hard/Q17_13_ReSpace/QuestionA.java:45
↓ 1 callers
Method
clean
(String str)
Java/Ch 17. Hard/Q17_13_ReSpace/QuestionB.java:49
↓ 1 callers
Method
clearBit
(int num, int i)
Java/Ch 05. Bit Manipulation/Sample_Code/Sample_Code.java:15
↓ 1 callers
Method
clearBitsIthrough0
(int num, int i)
Java/Ch 05. Bit Manipulation/Sample_Code/Sample_Code.java:31
↓ 1 callers
Method
clearBitsMSBthroughI
(int num, int i)
Java/Ch 05. Bit Manipulation/Sample_Code/Sample_Code.java:26
↓ 1 callers
Method
clearSpots
()
Java/Ch 07. Object-Oriented Design/Q7_04_Parking_Lot/Vehicle.java:25
↓ 1 callers
Method
clone
()
Java/Ch 16. Moderate/Q16_22_Langtons_Ant/Position.java:26
↓ 1 callers
Method
cloneMatrix
(int[][] matrix)
Java/Ch 01. Arrays and Strings/Q1_08_Zero_Matrix/Tester.java:21
↓ 1 callers
Method
collapseTerm
(Term primary, Term secondary)
Java/Ch 16. Moderate/Q16_26_Calculator/QuestionA.java:6
↓ 1 callers
Method
commonAncestor
(TreeNode root, TreeNode p, TreeNode q)
Java/Ch 04. Trees and Graphs/Q4_08_First_Common_Ancestor/QuestionF.java:7
↓ 1 callers
Method
commonAncestor
(TreeNode root, TreeNode p, TreeNode q)
Java/Ch 04. Trees and Graphs/Q4_08_First_Common_Ancestor/Question.java:21
↓ 1 callers
Method
commonAncestorBad
(TreeNode root, TreeNode p, TreeNode q)
Java/Ch 04. Trees and Graphs/Q4_08_First_Common_Ancestor/QuestionEBad.java:6
↓ 1 callers
Method
commonAncestorHelper
(TreeNode root, TreeNode p, TreeNode q)
Java/Ch 04. Trees and Graphs/Q4_08_First_Common_Ancestor/QuestionE.java:15
↓ 1 callers
Method
compareBinToHex
(String binary, String hex)
Java/Introduction/CompareBinaryToHex/CompareBinaryToHex.java:30
↓ 1 callers
Method
compute
(String sequence)
Java/Ch 16. Moderate/Q16_26_Calculator/QuestionA.java:33
↓ 1 callers
Method
compute
(String sequence)
Java/Ch 16. Moderate/Q16_26_Calculator/QuestionB.java:79
↓ 1 callers
Method
computeByteNum
(int width, int x, int y)
Java/Ch 05. Bit Manipulation/Q5_08_Draw_Line/Question.java:4
↓ 1 callers
Method
computeDeltaArray
(char[] array)
Java/Ch 17. Hard/Q17_05_Letters_and_Numbers/QuestionB.java:9
↓ 1 callers
Method
computeIntersections
(ArrayList<Element> elements)
Java/Ch 17. Hard/Q17_26_Sparse_Similarity/QuestionC.java:59
↓ 1 callers
Method
computeIntersections
(HashMapList<Integer, Integer> wordToDocs)
Java/Ch 17. Hard/Q17_26_Sparse_Similarity/QuestionB.java:37
↓ 1 callers
Method
computePondSizes
(int[][] land)
Java/Ch 16. Moderate/Q16_19_Pond_Sizes/QuestionA.java:6
↓ 1 callers
Method
computePondSizes
(int[][] land)
Java/Ch 16. Moderate/Q16_19_Pond_Sizes/QuestionB.java:7
↓ 1 callers
Method
computeSimilarity
(Document doc1, Document doc2)
Java/Ch 17. Hard/Q17_26_Sparse_Similarity/QuestionA.java:37
↓ 1 callers
Method
computeSize
(int[][] land, int row, int col)
Java/Ch 16. Moderate/Q16_19_Pond_Sizes/QuestionA.java:19
↓ 1 callers
Method
computeSize
(int[][] land, boolean[][] visited, int row, int col)
Java/Ch 16. Moderate/Q16_19_Pond_Sizes/QuestionB.java:21
↓ 1 callers
Method
connectEdges
(Graph graph, String[][] synonyms)
Java/Ch 17. Hard/Q17_07_Baby_Names/QuestionB.java:19
↓ 1 callers
Method
constructGraph
(HashMap<String, Integer> names)
Java/Ch 17. Hard/Q17_07_Baby_Names/QuestionB.java:8
↓ 1 callers
Method
constructGroups
(HashMap<String, Integer> names)
Java/Ch 17. Hard/Q17_07_Baby_Names/QuestionA.java:12
↓ 1 callers
Method
contains
(String prefix, boolean exact)
Java/CtCILibrary/CtCILibrary/Trie.java:34
↓ 1 callers
Method
containsWord
(String s)
Java/Ch 17. Hard/Q17_25_Word_Rectangle/WordGroup.java:15
↓ 1 callers
Method
convert
(BiNode root)
Java/Ch 17. Hard/Q17_12_BiNode/QuestionA.java:14
↓ 1 callers
Method
convert
(BiNode root)
Java/Ch 17. Hard/Q17_12_BiNode/QuestionC.java:77
↓ 1 callers
Method
convert
(BiNode root)
Java/Ch 17. Hard/Q17_12_BiNode/QuestionB.java:5
↓ 1 callers
Method
convertBoardToInt
(Piece[][] board)
Java/Ch 16. Moderate/Q16_04_Tic_Tac_Win/QuestionA.java:5
↓ 1 callers
Method
convertChunk
(int number)
Java/Ch 16. Moderate/Q16_08_English_Int/Question.java:47
↓ 1 callers
Method
convertIntToSet
(int x, ArrayList<Integer> set)
Java/Ch 08. Recursion and Dynamic Programming/Q8_04_Power_Set/QuestionB.java:7
↓ 1 callers
Method
convertToCircular
(BiNode root)
Java/Ch 17. Hard/Q17_12_BiNode/QuestionC.java:40
↓ 1 callers
Method
convertToMap
(HashMap<String, NameSet> groups)
Java/Ch 17. Hard/Q17_07_Baby_Names/QuestionA.java:47
↓ 1 callers
Method
convertToStringList
(Stack<Project> projects)
Java/Ch 04. Trees and Graphs/Q4_07_Build_Order/DFS/Question.java:55
↓ 1 callers
Method
convertToStringList
(Project[] projects)
Java/Ch 04. Trees and Graphs/Q4_07_Build_Order/EdgeRemoval/Question.java:69
↓ 1 callers
Method
convertToT9
(String word, HashMap<Character, Character> letterToNumberMap)
Java/Ch 16. Moderate/Q16_20_T9/QuestionC.java:25
↓ 1 callers
Method
copyArray
(int[] array)
Java/Introduction/Big_O/Q_09.java:5
↓ 1 callers
Method
copyNamesWithFrequency
(Set<String> more, int freq)
Java/Ch 17. Hard/Q17_07_Baby_Names/NameSet.java:25
↓ 1 callers
Method
copyWithShift
(boolean[][] oldGrid, boolean[][] newGrid, int shiftRow, int shiftColumn)
Java/Ch 16. Moderate/Q16_22_Langtons_Ant/Grid.java:12
↓ 1 callers
Method
count2sInRange
(int number)
Java/Ch 17. Hard/Q17_06_Count_of_2s/Question.java:22
↓ 1 callers
Method
count2sInRangeAtDigit
(int number, int d)
Java/Ch 17. Hard/Q17_06_Count_of_2s/Question.java:4
↓ 1 callers
Method
count2sR
(int n)
Java/Ch 17. Hard/Q17_06_Count_of_2s/Question.java:31
↓ 1 callers
Method
countCompression
(String str)
Java/Ch 01. Arrays and Strings/Q1_06_String_Compression/QuestionC.java:23
↓ 1 callers
Method
countEquivalentLines
(HashMapList<Double, Line> linesBySlope, Line line)
Java/Ch 16. Moderate/Q16_14_Best_Line/Question.java:57
↓ 1 callers
Method
countEval
(String s, boolean result)
Java/Ch 08. Recursion and Dynamic Programming/Q8_14_Boolean_Evaluation/QuestionC.java:9
↓ 1 callers
Method
countFactZeros
(int num)
Java/Ch 16. Moderate/Q16_05_Factorial_Zeros/QuestionA.java:13
↓ 1 callers
Method
countFactZeros
(int num)
Java/Ch 16. Moderate/Q16_05_Factorial_Zeros/QuestionB.java:4
↓ 1 callers
Method
countOf
(String pattern, char c)
Java/Ch 16. Moderate/Q16_18_Pattern_Matcher/QuestionC.java:18
↓ 1 callers
Method
countOf
(String pattern, char ch)
Java/Ch 16. Moderate/Q16_18_Pattern_Matcher/QuestionB.java:22
↓ 1 callers
Method
countOf
(String pattern, char c)
Java/Ch 16. Moderate/Q16_18_Pattern_Matcher/QuestionD.java:51
↓ 1 callers
Method
countPathsWithSumFromNode
(TreeNode node, int targetSum, int currentSum)
Java/Ch 04. Trees and Graphs/Q4_12_Paths_with_Sum/QuestionA.java:21
↓ 1 callers
Method
createBitVector
(String phrase)
Java/Ch 01. Arrays and Strings/Q1_04_Palindrome_Permutation/QuestionC.java:19
↓ 1 callers
Method
createBottles
(int nBottles, int poisoned)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionA.java:43
↓ 1 callers
Method
createBottles
(int nBottles, int poisoned)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionC.java:7
↓ 1 callers
Method
createBottles
(int nBottles, int poisoned)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionB.java:8
↓ 1 callers
Method
createEdges
(Piece[][] puzzle, int column, int row)
Java/Ch 07. Object-Oriented Design/Q7_06_Jigsaw/Question.java:18
↓ 1 callers
Method
createGiantArray
()
Java/Ch 17. Hard/Q17_15_Longest_Word/Question.java:43
↓ 1 callers
Method
createHistogramData
(int[] histo)
Java/Ch 17. Hard/Q17_21_Volume_of_Histogram/QuestionB.java:31
↓ 1 callers
Method
createLetterToNumberMap
()
Java/Ch 16. Moderate/Q16_20_T9/QuestionC.java:37
↓ 1 callers
Method
createLevelLinkedList
(TreeNode root, ArrayList<LinkedList<TreeNode>> lists, int level)
Java/Ch 04. Trees and Graphs/Q4_03_List_of_Depths/QuestionDFS.java:11
↓ 1 callers
Method
createLevelLinkedList
(TreeNode root)
Java/Ch 04. Trees and Graphs/Q4_03_List_of_Depths/QuestionBFS.java:11
↓ 1 callers
Method
createNewGraph
()
Java/Ch 04. Trees and Graphs/Q4_01_Route_Between_Nodes/Question.java:19
↓ 1 callers
Method
createNode
(String name, int freq)
Java/Ch 17. Hard/Q17_07_Baby_Names/Graph.java:19
↓ 1 callers
Method
createPoints
()
Java/Ch 16. Moderate/Q16_14_Best_Line/Question.java:82
↓ 1 callers
Method
createRandomBox
()
Java/Ch 08. Recursion and Dynamic Programming/Q8_13_Stack_of_Boxes/Tester.java:8
↓ 1 callers
Method
createStack
(ArrayList<Box> boxes)
Java/Ch 08. Recursion and Dynamic Programming/Q8_13_Stack_of_Boxes/QuestionC.java:7
↓ 1 callers
Method
createTestStrips
(int nTestStrips)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionA.java:60
↓ 1 callers
Method
createTestStrips
(int nTestStrips)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionC.java:66
↓ 1 callers
Method
createTestStrips
(int nTestStrips)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionB.java:100
↓ 1 callers
Method
createTree
()
Java/Ch 17. Hard/Q17_12_BiNode/QuestionA.java:48
↓ 1 callers
Method
createTree
()
Java/Ch 17. Hard/Q17_12_BiNode/QuestionC.java:16
↓ 1 callers
Method
createTree
()
Java/Ch 17. Hard/Q17_12_BiNode/QuestionB.java:50
↓ 1 callers
Method
createTreeFromStrings
(String[] smalls, int maxSize)
Java/Ch 17. Hard/Q17_17_Multi_Search/QuestionC.java:8
↓ 1 callers
Method
createTrieFromString
(String s)
Java/Ch 17. Hard/Q17_17_Multi_Search/QuestionB.java:16
↓ 1 callers
Method
createWildcardToWordMap
(String[] words)
Java/Ch 17. Hard/Q17_22_Word_Transformer/QuestionB.java:44
↓ 1 callers
Method
createWordGroups
(String[] list)
Java/Ch 17. Hard/Q17_25_Word_Rectangle/WordGroup.java:36
↓ 1 callers
Method
createYearMap
(Person[] people, int min, int max)
Java/Ch 16. Moderate/Q16_10_Living_People/QuestionB.java:15
↓ 1 callers
Method
crossOff
(boolean[] flags, int prime)
Java/Ch 06. Math and Logic Puzzles/Introduction/SieveOfEratosthenes.java:5
↓ 1 callers
Method
cut
(Square other)
Java/Ch 16. Moderate/Q16_13_Bisect_Squares/Square.java:66
↓ 1 callers
Method
dealInitial
()
Java/Ch 07. Object-Oriented Design/Q7_01_Deck_of_Cards/BlackJackGameAutomator.java:17
↓ 1 callers
Method
decrementDependencies
()
Java/Ch 04. Trees and Graphs/Q4_07_Build_Order/EdgeRemoval/Project.java:36
↓ 1 callers
Method
decrementIfFound
(int v)
Java/Ch 17. Hard/Q17_18_Shortest_Supersequence/QuestionE.java:31
↓ 1 callers
Method
deleteDups
(LinkedListNode head)
Java/Ch 02. Linked Lists/Q2_01_Remove_Dups/QuestionC.java:6
← previous
next →
601–700 of 2,047, ranked by callers