Skip to content

saran-surya/code-book

Repository files navigation

Contains solutions to programming questions asked in interviews / coding rounds.

Feel free to contribute, and if you like the repo kindly Star it 😉.

Covers Dynamic programming, Greedy, Recursion.

The Approaches are all coded in PYTHON 3.

  1. 3-Palindrome, I have tried my best approach to solve the question only by using recursion, and no loops

  2. Elections, I have actually used a straight forward native approach of countaing the neutrals and handling them with loops

  3. Tennis Court, A longer program as the points logic was to be implemented for all cases of serves and sets.

  4. String Merge, I have also followed a Naitive with a dynamic approach.

  5. Path through Graph, Followed a simple mathematical approach.

  6. Factor of 3, Followed a simple Permutation logic in order to reduce Time.

  7. Even Odd, Followed a simple Permutation logic.

  8. Unlocker, I have followed a simple naive approach, They work good on given testcases and custom edge cases.

  9. T-Rex and Theme park question, I have completely used recursion for the path finding algorithm, and it is effective for all edge cases.

  10. Chris Patt dinosaur (path in a matrix), I have completely used recursion for the path finding algorithm, and it is effective for all edge cases.

Feel free to raise pull requests for performance issues and edge cases.

Thankyou 💖