A Directory of Code Interview Questions

NOTE: THIS POST HAS BEEN DEPRECATED AS OF 11/22/20 … NO MORE UPDATES ARE EXPECTED ON THIS DIRECTORY….

This post will be the go to source for patterns, all of which will contain coding samples. If you’ve read Memorizing Code PART I, and Memorizing Code PART II, this is essentially “Part III” — or at least the “index” for all that follows. For convenient reference…

UPDATE: as of 11/08/2020
originally… the patterns I was writing about were focusing on employing a “cast of characters” to memorize code. After a few weeks, I’ve realized that its practicality is limited… However, personifying code IS helpful when trying to remember the basic premise of how a coding tool is expressed: for example slice versus splice (slice being temporary like a magical ninja doing magic tricks, whereas splice being permanent as in DNA splicing.)

Link to Part I, HERE (premise of “Why Memorize”)
Link to Part II, HERE (personification of code)

THE PATTERNS

  1. The Sliding Window – DONE
  2. Two Pointers – DONE
  3. Three Pointers – DONE
  4. Tortoise and Hare Pointers – DONE
  5. Divide and Conquer – DONE
  6. Common Recursion
  7. Cyclic Sort
  8. Linear Search
  9. Binary Search (Modified or Otherwise)
  10. Bubble Sort
  11. Selection Sort
  12. Insertion Sort
  13. Merge Intervals
  14. Merge Sort
  15. Quick Sort
  16. Radix Sort
  17. Graph Traversal
  18. Breadth First Search (Trees) – DONE
  19. Depth First Search (Trees) – DONE
  20. Reversing a Linked List – DONE
  21. Two Heaps
  22. Subsets
  23. Building a Tree
  24. Bitwise XOR
  25. Top K Elements
  26. K-Way Merge
  27. Dynamic Programming
  28. Dijkstra’s Algorithm
  29. Fibonacci
  30. Builder
  31. Factory
  32. Prototype
  33. Singleton
  34. Adapter
  35. Bridge
  36. Composite
  37. Decorator
  38. Facade
  39. Flyweight
  40. Proxy
  41. Proxy
  42. Chain of Responsibility
  43. Command
  44. Interpreter
  45. Iterator
  46. Mediator
  47. Memento
  48. Observer
  49. State
  50. Strategy
  51. Template Method
  52. Visitor

Discover more from Comedy Tragedy Epic

Subscribe now to keep reading and get access to the full archive.

Continue reading