Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/CtCI-6th-Edition-Go
/ types & classes
Types & classes
19 in github.com/careercup/CtCI-6th-Edition-Go
⨍
Functions
122
◇
Types & classes
19
↓ 2 callers
TypeAlias
intSlice
src/chapter3/stack_test.go:9
Struct
DoublyLinkedList
src/chapter2/linked_list.go:3
Struct
MinStack
src/chapter3/problem2.go:7
Struct
PetInfo
Pet queue type, using PetInfo instead of int. Would be much easier if Go had generics.
src/chapter3/problem6.go:11
Struct
PetQueue
src/chapter3/problem6.go:24
Struct
PetShelter
Simple approach using two queues: one for dogs, one for cats. To find the oldest, we just check the oldest from each queue.
src/chapter3/problem6.go:77
TypeAlias
PetType
src/chapter3/problem6.go:17
Struct
Queue
src/chapter3/queue.go:14
Struct
QueueUsingStacks
src/chapter3/problem4.go:7
Interface
Queueable
src/chapter3/queue.go:7
Struct
SetOfStacks
Approaching this problem with the "stacks don't have to be at capacity" idea. This means that when we popAt, the target stack becomes the next stack t
src/chapter3/problem3.go:11
Struct
SliceMultiStack
Only including fixed stack size solution. Book states variable solution is too complex for an interview.
src/chapter3/problem1.go:10
Struct
SortStack
Sort stack based on using two stacks, where one is always in order and the other is used for temp storage during sorting.
src/chapter3/problem5.go:9
Struct
Stack
src/chapter3/stack.go:14
Interface
Stackable
src/chapter3/stack.go:7
Struct
node
src/chapter2/linked_list.go:9
Struct
petQueueNode
src/chapter3/problem6.go:28
Struct
queueNode
src/chapter3/queue.go:18
Struct
stackNode
src/chapter3/stack.go:18