Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/CtCI-6th-Edition-Go
/ functions
Functions
122 in github.com/careercup/CtCI-6th-Edition-Go
⨍
Functions
122
◇
Types & classes
19
↓ 20 callers
Function
GetLinkedListFromValues
(vals []int)
src/chapter2/linked_list.go:19
↓ 17 callers
Method
Push
(int)
src/chapter3/stack.go:8
↓ 16 callers
Method
Pop
()
src/chapter3/stack.go:9
↓ 11 callers
Method
IsEmpty
()
src/chapter3/stack.go:11
↓ 10 callers
Method
Remove
()
src/chapter3/queue.go:9
↓ 8 callers
Method
Peek
()
src/chapter3/stack.go:10
↓ 7 callers
Function
GetLinkedList
()
src/chapter2/linked_list.go:15
↓ 7 callers
Method
Insert
Insert at end.
src/chapter2/linked_list.go:31
↓ 5 callers
Method
Add
(int)
src/chapter3/queue.go:8
↓ 5 callers
Method
getNode
(index int)
src/chapter2/linked_list.go:47
↓ 4 callers
Function
AreIntersecting
Only use next to simulate singly linked list.
src/chapter2/problem7.go:4
↓ 4 callers
Method
Len
()
src/chapter2/linked_list.go:70
↓ 4 callers
Method
getMultiStackHead
(stack int)
src/chapter3/problem1.go:23
↓ 3 callers
Method
Slice
Mostly used for testing.
src/chapter2/linked_list.go:56
↓ 3 callers
Method
enqueue
(name string, petType PetType)
src/chapter3/problem6.go:85
↓ 3 callers
Method
insertNode
(newNode *node)
src/chapter2/linked_list.go:36
↓ 2 callers
Method
FindLoopNode
()
src/chapter2/problem8.go:3
↓ 2 callers
Method
Get
(index int)
src/chapter2/linked_list.go:66
↓ 2 callers
Function
GetQueueUsingStacks
()
src/chapter3/problem4.go:12
↓ 2 callers
Function
GetSetOfStacks
(max int)
src/chapter3/problem3.go:18
↓ 2 callers
Method
IsEmpty
(stack int)
src/chapter3/problem1.go:54
↓ 2 callers
Method
IsEmpty
()
src/chapter3/problem3.go:81
↓ 2 callers
Method
KFromTail
Don't use prev to simulate singly linked list. Assume k=0 means tail, k=1 one before tail etc. Using the length of the list.
src/chapter2/problem2.go:6
↓ 2 callers
Method
KFromTail2
Without knowledge of the length of the list.
src/chapter2/problem2.go:15
↓ 2 callers
Method
newToOld
()
src/chapter3/problem4.go:20
↓ 2 callers
Function
oneRemovalAway
(smaller, larger string)
src/chapter1/problem5.go:7
↓ 2 callers
Method
removeNode
(node *node)
src/chapter2/problem3.go:3
↓ 1 callers
Method
Add
(value int)
src/chapter3/queue.go:23
↓ 1 callers
Function
AddTwoLists
(l1, l2 *DoublyLinkedList)
src/chapter2/problem5.go:3
↓ 1 callers
Function
AreOneEditAway
(input1, input2 string)
src/chapter1/problem5.go:28
↓ 1 callers
Function
ArePermutations
(input1, input2 string)
src/chapter1/problem2.go:3
↓ 1 callers
Function
BasicCompress
(input string)
src/chapter1/problem6.go:7
↓ 1 callers
Function
CreateLoopedList
Create a list with given values. Point tail to given index, creating a loop.
src/chapter2/problem8_test.go:9
↓ 1 callers
Function
GetMinStack
()
src/chapter3/problem2.go:12
↓ 1 callers
Function
GetPetShelter
()
src/chapter3/problem6.go:81
↓ 1 callers
Function
GetSliceMultiStack
(stacks, stackSize int)
src/chapter3/problem1.go:17
↓ 1 callers
Function
GetSortStack
()
src/chapter3/problem5.go:14
↓ 1 callers
Method
IsPalindrome
Using doubly linked list which remembers head & tail.
src/chapter2/problem6.go:4
↓ 1 callers
Function
IsPalindromePerm
(input string)
src/chapter1/problem4.go:3
↓ 1 callers
Function
IsRotation
(input1, input2 string)
src/chapter1/problem9.go:7
↓ 1 callers
Function
IsUnique
Using map of runes for duplicate detection.
src/chapter1/problem1.go:4
↓ 1 callers
Function
MatrixRotate
(matrix [][]int)
src/chapter1/problem7.go:3
↓ 1 callers
Method
Min
()
src/chapter3/problem2.go:50
↓ 1 callers
Method
PivotAroundValue
(value int)
src/chapter2/problem4.go:3
↓ 1 callers
Method
Pop
()
src/chapter3/stack.go:31
↓ 1 callers
Method
PopAt
(stack int)
src/chapter3/problem3.go:54
↓ 1 callers
Method
Push
(value int)
src/chapter3/stack.go:23
↓ 1 callers
Method
Remove
()
src/chapter3/queue.go:35
↓ 1 callers
Method
RemoveDuplicates
Using hash table to track duplicates. Using remove solution from problem 3.
src/chapter2/problem1.go:5
↓ 1 callers
Function
URLify
O(n) time with O(n) extra space.
src/chapter1/problem3.go:4
↓ 1 callers
Function
URLifySlice
Less "real world" version taking a []rune with spaces on the end to be able to URLify in place. O(n), in place.
src/chapter1/problem3.go:33
↓ 1 callers
Function
ZeroColumn
(matrix [][]int, col int)
src/chapter1/problem8.go:9
↓ 1 callers
Function
ZeroMatrix
(matrix [][]int)
src/chapter1/problem8.go:15
↓ 1 callers
Function
ZeroRow
(matrix [][]int, row int)
src/chapter1/problem8.go:3
↓ 1 callers
Method
dequeueAny
()
src/chapter3/problem6.go:109
↓ 1 callers
Method
dequeueCat
()
src/chapter3/problem6.go:101
↓ 1 callers
Method
dequeueDog
()
src/chapter3/problem6.go:93
Method
Add
(value int)
src/chapter3/problem4.go:16
Method
Add
(name string, petType PetType)
src/chapter3/problem6.go:33
Method
IsEmpty
()
src/chapter3/problem4.go:70
Method
IsEmpty
()
src/chapter3/problem5.go:70
Method
IsEmpty
()
src/chapter3/problem2.go:57
Method
IsEmpty
()
src/chapter3/stack.go:47
Method
IsEmpty
()
src/chapter3/queue.go:11
Method
IsEmpty
()
src/chapter3/queue.go:54
Method
IsEmpty
()
src/chapter3/problem6.go:70
Method
Len
()
src/chapter3/stack_test.go:11
Method
Less
(i, j int)
src/chapter3/stack_test.go:13
Method
Peek
(stack int)
src/chapter3/problem1.go:47
Method
Peek
()
src/chapter3/problem4.go:50
Method
Peek
Peek is also Min in SortStack.
src/chapter3/problem5.go:59
Method
Peek
()
src/chapter3/problem2.go:43
Method
Peek
()
src/chapter3/stack.go:40
Method
Peek
()
src/chapter3/queue.go:10
Method
Peek
()
src/chapter3/queue.go:47
Method
Peek
()
src/chapter3/problem3.go:70
Method
Peek
()
src/chapter3/problem6.go:63
Method
Pop
(stack int)
src/chapter3/problem1.go:37
Method
Pop
()
src/chapter3/problem5.go:47
Method
Pop
()
src/chapter3/problem2.go:33
Method
Pop
()
src/chapter3/problem3.go:39
Method
Push
(stack, value int)
src/chapter3/problem1.go:27
Method
Push
(value int)
src/chapter3/problem5.go:18
Method
Push
(value int)
src/chapter3/problem2.go:16
Method
Push
(value int)
src/chapter3/problem3.go:27
Method
Remove
(index int)
src/chapter2/problem3.go:19
Method
Remove
()
src/chapter3/problem4.go:30
Method
Remove
()
src/chapter3/problem6.go:51
Method
Swap
(i, j int)
src/chapter3/stack_test.go:12
Function
TestAddTwoLists
(t *testing.T)
src/chapter2/problem5_test.go:7
Function
TestAreIntersectingNegative
(t *testing.T)
src/chapter2/problem7_test.go:40
Function
TestAreIntersectingPositive
(t *testing.T)
src/chapter2/problem7_test.go:7
Function
TestAreOneEditAway
(t *testing.T)
src/chapter1/problem5_test.go:7
Function
TestArePermutations
(t *testing.T)
src/chapter1/problem2_test.go:7
Function
TestBasicCompress
(t *testing.T)
src/chapter1/problem6_test.go:7
Function
TestFindLoopNodeNegative
(t *testing.T)
src/chapter2/problem8_test.go:15
Function
TestFindLoopNodePositive
(t *testing.T)
src/chapter2/problem8_test.go:38
Function
TestIsPalindrome
(t *testing.T)
src/chapter2/problem6_test.go:7
Function
TestIsPalindromePerm
(t *testing.T)
src/chapter1/problem4_test.go:7
Function
TestIsRotation
(t *testing.T)
src/chapter1/problem9_test.go:7
next →
1–100 of 122, ranked by callers