MCPcopy Create free account

hub / github.com/careercup/CtCI-6th-Edition / functions

Functions2,047 in github.com/careercup/CtCI-6th-Edition

↓ 1 callersMethodcanFitInSpot
(ParkingSpot spot)
Java/Ch 07. Object-Oriented Design/Q7_04_Parking_Lot/Car.java:9
↓ 1 callersMethodcanonical
(String pattern)
Java/Ch 16. Moderate/Q16_18_Pattern_Matcher/QuestionB.java:32
↓ 1 callersMethodcharArrayToString
(char[] array)
Java/CtCILibrary/CtCILibrary/AssortedMethods.java:169
↓ 1 callersMethodcheckAtMostOneBitSet
(int bitVector)
Java/Ch 01. Arrays and Strings/Q1_04_Palindrome_Permutation/QuestionC.java:30
↓ 1 callersMethodcheckBST
(TreeNode n, Integer min, Integer max)
Java/Ch 04. Trees and Graphs/Q4_05_Validate_BST/QuestionB.java:7
↓ 1 callersMethodcheckDuplicates
(int[] array)
Java/Ch 10. Sorting and Searching/Q10_08_Find_Duplicates/Question.java:7
↓ 1 callersMethodcheckHeight
(TreeNode root)
Java/Ch 04. Trees and Graphs/Q4_04_Check_Balanced/QuestionImproved.java:6
↓ 1 callersMethodcheckMaxOneOdd
(int[] table)
Java/Ch 01. Arrays and Strings/Q1_04_Palindrome_Permutation/QuestionA.java:4
↓ 1 callersMethodcheckRange
(int start, int range)
Java/Ch 05. Bit Manipulation/Q5_03_Flip_Bit_to_Win/Tester.java:5
↓ 1 callersMethodcheckValid
(Integer[] columns, int row1, int column1)
Java/Ch 08. Recursion and Dynamic Programming/Q8_12_Eight_Queens/Question.java:13
↓ 1 callersMethodchew
()
Java/Ch 15. Threads and Locks/Q15_03_Dining_Philosophers/QuestionA/Philosopher.java:43
↓ 1 callersMethodchew
()
Java/Ch 15. Threads and Locks/Q15_03_Dining_Philosophers/QuestionB/Philosopher.java:39
↓ 1 callersMethodclean
(String str)
Java/Ch 17. Hard/Q17_13_ReSpace/QuestionA.java:45
↓ 1 callersMethodclean
(String str)
Java/Ch 17. Hard/Q17_13_ReSpace/QuestionB.java:49
↓ 1 callersMethodclearBit
(int num, int i)
Java/Ch 05. Bit Manipulation/Sample_Code/Sample_Code.java:15
↓ 1 callersMethodclearBitsIthrough0
(int num, int i)
Java/Ch 05. Bit Manipulation/Sample_Code/Sample_Code.java:31
↓ 1 callersMethodclearBitsMSBthroughI
(int num, int i)
Java/Ch 05. Bit Manipulation/Sample_Code/Sample_Code.java:26
↓ 1 callersMethodclearSpots
()
Java/Ch 07. Object-Oriented Design/Q7_04_Parking_Lot/Vehicle.java:25
↓ 1 callersMethodclone
()
Java/Ch 16. Moderate/Q16_22_Langtons_Ant/Position.java:26
↓ 1 callersMethodcloneMatrix
(int[][] matrix)
Java/Ch 01. Arrays and Strings/Q1_08_Zero_Matrix/Tester.java:21
↓ 1 callersMethodcollapseTerm
(Term primary, Term secondary)
Java/Ch 16. Moderate/Q16_26_Calculator/QuestionA.java:6
↓ 1 callersMethodcommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
Java/Ch 04. Trees and Graphs/Q4_08_First_Common_Ancestor/QuestionF.java:7
↓ 1 callersMethodcommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
Java/Ch 04. Trees and Graphs/Q4_08_First_Common_Ancestor/Question.java:21
↓ 1 callersMethodcommonAncestorBad
(TreeNode root, TreeNode p, TreeNode q)
Java/Ch 04. Trees and Graphs/Q4_08_First_Common_Ancestor/QuestionEBad.java:6
↓ 1 callersMethodcommonAncestorHelper
(TreeNode root, TreeNode p, TreeNode q)
Java/Ch 04. Trees and Graphs/Q4_08_First_Common_Ancestor/QuestionE.java:15
↓ 1 callersMethodcompareBinToHex
(String binary, String hex)
Java/Introduction/CompareBinaryToHex/CompareBinaryToHex.java:30
↓ 1 callersMethodcompute
(String sequence)
Java/Ch 16. Moderate/Q16_26_Calculator/QuestionA.java:33
↓ 1 callersMethodcompute
(String sequence)
Java/Ch 16. Moderate/Q16_26_Calculator/QuestionB.java:79
↓ 1 callersMethodcomputeByteNum
(int width, int x, int y)
Java/Ch 05. Bit Manipulation/Q5_08_Draw_Line/Question.java:4
↓ 1 callersMethodcomputeDeltaArray
(char[] array)
Java/Ch 17. Hard/Q17_05_Letters_and_Numbers/QuestionB.java:9
↓ 1 callersMethodcomputeIntersections
(ArrayList<Element> elements)
Java/Ch 17. Hard/Q17_26_Sparse_Similarity/QuestionC.java:59
↓ 1 callersMethodcomputeIntersections
(HashMapList<Integer, Integer> wordToDocs)
Java/Ch 17. Hard/Q17_26_Sparse_Similarity/QuestionB.java:37
↓ 1 callersMethodcomputePondSizes
(int[][] land)
Java/Ch 16. Moderate/Q16_19_Pond_Sizes/QuestionA.java:6
↓ 1 callersMethodcomputePondSizes
(int[][] land)
Java/Ch 16. Moderate/Q16_19_Pond_Sizes/QuestionB.java:7
↓ 1 callersMethodcomputeSimilarity
(Document doc1, Document doc2)
Java/Ch 17. Hard/Q17_26_Sparse_Similarity/QuestionA.java:37
↓ 1 callersMethodcomputeSize
(int[][] land, int row, int col)
Java/Ch 16. Moderate/Q16_19_Pond_Sizes/QuestionA.java:19
↓ 1 callersMethodcomputeSize
(int[][] land, boolean[][] visited, int row, int col)
Java/Ch 16. Moderate/Q16_19_Pond_Sizes/QuestionB.java:21
↓ 1 callersMethodconnectEdges
(Graph graph, String[][] synonyms)
Java/Ch 17. Hard/Q17_07_Baby_Names/QuestionB.java:19
↓ 1 callersMethodconstructGraph
(HashMap<String, Integer> names)
Java/Ch 17. Hard/Q17_07_Baby_Names/QuestionB.java:8
↓ 1 callersMethodconstructGroups
(HashMap<String, Integer> names)
Java/Ch 17. Hard/Q17_07_Baby_Names/QuestionA.java:12
↓ 1 callersMethodcontains
(String prefix, boolean exact)
Java/CtCILibrary/CtCILibrary/Trie.java:34
↓ 1 callersMethodcontainsWord
(String s)
Java/Ch 17. Hard/Q17_25_Word_Rectangle/WordGroup.java:15
↓ 1 callersMethodconvert
(BiNode root)
Java/Ch 17. Hard/Q17_12_BiNode/QuestionA.java:14
↓ 1 callersMethodconvert
(BiNode root)
Java/Ch 17. Hard/Q17_12_BiNode/QuestionC.java:77
↓ 1 callersMethodconvert
(BiNode root)
Java/Ch 17. Hard/Q17_12_BiNode/QuestionB.java:5
↓ 1 callersMethodconvertBoardToInt
(Piece[][] board)
Java/Ch 16. Moderate/Q16_04_Tic_Tac_Win/QuestionA.java:5
↓ 1 callersMethodconvertChunk
(int number)
Java/Ch 16. Moderate/Q16_08_English_Int/Question.java:47
↓ 1 callersMethodconvertIntToSet
(int x, ArrayList<Integer> set)
Java/Ch 08. Recursion and Dynamic Programming/Q8_04_Power_Set/QuestionB.java:7
↓ 1 callersMethodconvertToCircular
(BiNode root)
Java/Ch 17. Hard/Q17_12_BiNode/QuestionC.java:40
↓ 1 callersMethodconvertToMap
(HashMap<String, NameSet> groups)
Java/Ch 17. Hard/Q17_07_Baby_Names/QuestionA.java:47
↓ 1 callersMethodconvertToStringList
(Stack<Project> projects)
Java/Ch 04. Trees and Graphs/Q4_07_Build_Order/DFS/Question.java:55
↓ 1 callersMethodconvertToStringList
(Project[] projects)
Java/Ch 04. Trees and Graphs/Q4_07_Build_Order/EdgeRemoval/Question.java:69
↓ 1 callersMethodconvertToT9
(String word, HashMap<Character, Character> letterToNumberMap)
Java/Ch 16. Moderate/Q16_20_T9/QuestionC.java:25
↓ 1 callersMethodcopyArray
(int[] array)
Java/Introduction/Big_O/Q_09.java:5
↓ 1 callersMethodcopyNamesWithFrequency
(Set<String> more, int freq)
Java/Ch 17. Hard/Q17_07_Baby_Names/NameSet.java:25
↓ 1 callersMethodcopyWithShift
(boolean[][] oldGrid, boolean[][] newGrid, int shiftRow, int shiftColumn)
Java/Ch 16. Moderate/Q16_22_Langtons_Ant/Grid.java:12
↓ 1 callersMethodcount2sInRange
(int number)
Java/Ch 17. Hard/Q17_06_Count_of_2s/Question.java:22
↓ 1 callersMethodcount2sInRangeAtDigit
(int number, int d)
Java/Ch 17. Hard/Q17_06_Count_of_2s/Question.java:4
↓ 1 callersMethodcount2sR
(int n)
Java/Ch 17. Hard/Q17_06_Count_of_2s/Question.java:31
↓ 1 callersMethodcountCompression
(String str)
Java/Ch 01. Arrays and Strings/Q1_06_String_Compression/QuestionC.java:23
↓ 1 callersMethodcountEquivalentLines
(HashMapList<Double, Line> linesBySlope, Line line)
Java/Ch 16. Moderate/Q16_14_Best_Line/Question.java:57
↓ 1 callersMethodcountEval
(String s, boolean result)
Java/Ch 08. Recursion and Dynamic Programming/Q8_14_Boolean_Evaluation/QuestionC.java:9
↓ 1 callersMethodcountFactZeros
(int num)
Java/Ch 16. Moderate/Q16_05_Factorial_Zeros/QuestionA.java:13
↓ 1 callersMethodcountFactZeros
(int num)
Java/Ch 16. Moderate/Q16_05_Factorial_Zeros/QuestionB.java:4
↓ 1 callersMethodcountOf
(String pattern, char c)
Java/Ch 16. Moderate/Q16_18_Pattern_Matcher/QuestionC.java:18
↓ 1 callersMethodcountOf
(String pattern, char ch)
Java/Ch 16. Moderate/Q16_18_Pattern_Matcher/QuestionB.java:22
↓ 1 callersMethodcountOf
(String pattern, char c)
Java/Ch 16. Moderate/Q16_18_Pattern_Matcher/QuestionD.java:51
↓ 1 callersMethodcountPathsWithSumFromNode
(TreeNode node, int targetSum, int currentSum)
Java/Ch 04. Trees and Graphs/Q4_12_Paths_with_Sum/QuestionA.java:21
↓ 1 callersMethodcreateBitVector
(String phrase)
Java/Ch 01. Arrays and Strings/Q1_04_Palindrome_Permutation/QuestionC.java:19
↓ 1 callersMethodcreateBottles
(int nBottles, int poisoned)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionA.java:43
↓ 1 callersMethodcreateBottles
(int nBottles, int poisoned)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionC.java:7
↓ 1 callersMethodcreateBottles
(int nBottles, int poisoned)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionB.java:8
↓ 1 callersMethodcreateEdges
(Piece[][] puzzle, int column, int row)
Java/Ch 07. Object-Oriented Design/Q7_06_Jigsaw/Question.java:18
↓ 1 callersMethodcreateGiantArray
()
Java/Ch 17. Hard/Q17_15_Longest_Word/Question.java:43
↓ 1 callersMethodcreateHistogramData
(int[] histo)
Java/Ch 17. Hard/Q17_21_Volume_of_Histogram/QuestionB.java:31
↓ 1 callersMethodcreateLetterToNumberMap
()
Java/Ch 16. Moderate/Q16_20_T9/QuestionC.java:37
↓ 1 callersMethodcreateLevelLinkedList
(TreeNode root, ArrayList<LinkedList<TreeNode>> lists, int level)
Java/Ch 04. Trees and Graphs/Q4_03_List_of_Depths/QuestionDFS.java:11
↓ 1 callersMethodcreateLevelLinkedList
(TreeNode root)
Java/Ch 04. Trees and Graphs/Q4_03_List_of_Depths/QuestionBFS.java:11
↓ 1 callersMethodcreateNewGraph
()
Java/Ch 04. Trees and Graphs/Q4_01_Route_Between_Nodes/Question.java:19
↓ 1 callersMethodcreateNode
(String name, int freq)
Java/Ch 17. Hard/Q17_07_Baby_Names/Graph.java:19
↓ 1 callersMethodcreatePoints
()
Java/Ch 16. Moderate/Q16_14_Best_Line/Question.java:82
↓ 1 callersMethodcreateRandomBox
()
Java/Ch 08. Recursion and Dynamic Programming/Q8_13_Stack_of_Boxes/Tester.java:8
↓ 1 callersMethodcreateStack
(ArrayList<Box> boxes)
Java/Ch 08. Recursion and Dynamic Programming/Q8_13_Stack_of_Boxes/QuestionC.java:7
↓ 1 callersMethodcreateTestStrips
(int nTestStrips)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionA.java:60
↓ 1 callersMethodcreateTestStrips
(int nTestStrips)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionC.java:66
↓ 1 callersMethodcreateTestStrips
(int nTestStrips)
Java/Ch 06. Math and Logic Puzzles/Q6_10_Test_Strips/QuestionB.java:100
↓ 1 callersMethodcreateTree
()
Java/Ch 17. Hard/Q17_12_BiNode/QuestionA.java:48
↓ 1 callersMethodcreateTree
()
Java/Ch 17. Hard/Q17_12_BiNode/QuestionC.java:16
↓ 1 callersMethodcreateTree
()
Java/Ch 17. Hard/Q17_12_BiNode/QuestionB.java:50
↓ 1 callersMethodcreateTreeFromStrings
(String[] smalls, int maxSize)
Java/Ch 17. Hard/Q17_17_Multi_Search/QuestionC.java:8
↓ 1 callersMethodcreateTrieFromString
(String s)
Java/Ch 17. Hard/Q17_17_Multi_Search/QuestionB.java:16
↓ 1 callersMethodcreateWildcardToWordMap
(String[] words)
Java/Ch 17. Hard/Q17_22_Word_Transformer/QuestionB.java:44
↓ 1 callersMethodcreateWordGroups
(String[] list)
Java/Ch 17. Hard/Q17_25_Word_Rectangle/WordGroup.java:36
↓ 1 callersMethodcreateYearMap
(Person[] people, int min, int max)
Java/Ch 16. Moderate/Q16_10_Living_People/QuestionB.java:15
↓ 1 callersMethodcrossOff
(boolean[] flags, int prime)
Java/Ch 06. Math and Logic Puzzles/Introduction/SieveOfEratosthenes.java:5
↓ 1 callersMethodcut
(Square other)
Java/Ch 16. Moderate/Q16_13_Bisect_Squares/Square.java:66
↓ 1 callersMethoddealInitial
()
Java/Ch 07. Object-Oriented Design/Q7_01_Deck_of_Cards/BlackJackGameAutomator.java:17
↓ 1 callersMethoddecrementDependencies
()
Java/Ch 04. Trees and Graphs/Q4_07_Build_Order/EdgeRemoval/Project.java:36
↓ 1 callersMethoddecrementIfFound
(int v)
Java/Ch 17. Hard/Q17_18_Shortest_Supersequence/QuestionE.java:31
↓ 1 callersMethoddeleteDups
(LinkedListNode head)
Java/Ch 02. Linked Lists/Q2_01_Remove_Dups/QuestionC.java:6
← previousnext →601–700 of 2,047, ranked by callers