/the-fang-gambit

contains solutions to some common data structures and algorithms questions

Primary LanguageJavaScript

The FANG Gambit

Solutions to some data structures and algorithms practical questions

  1. Two sum
  1. Container with most Water
  1. Trapped Rain water
  1. Validate sub-sequence
  1. Sorted squared array
  1. Backspace String compare
  1. Longest sub-string without repeating characters
  1. Palindrome
  1. Smallest difference
  1. move element to the end
  1. monotonic array

All the other Questions will have the same format, i.e

  • a text file containing the problem description, sample test cases and constraints.
  • A brute force file containing the solution to the problem in a brute force fashion/way of thinking.
  • An optimized.js file containing optimized solution of the problem
  • A optimized.ins.js which is either further optimization of the current optimization or a decent version of the current optimization eg factored code, good practices e.t.c.