Scala is a great language to solve interview problems for software engineer positions. This project aims to demonstrate that by providing concise solutions to common interview questions.
- Each file should contain problem description followed by short solution
- No reliance on outside libraries is allowed
- FP style is preferable, but not necessary
* - stars denote approximate difficulty rating
- Maximum product of subarray *
- Pick random k elements *
- Remove duplicates from sorted list
- Merge sort
- Find 2 elements that add to given sum
- Max subarray sum / java *
- Max subarray product (java) *
- Longest common subsequence
- Nearby words
- Needle in haystack *
- Phone keypad / java *
- Simple regex matching
- Word break
- Tokenize string *
- Word ladder
- String compression
- Longest substring of M unique chars / java *