LoanSnap_Coding_Challenge
Solutions to "Uniform Substring" and "Generate Ordered String" problems.
- The solution to "Uniform Substring" problem has an O(N + T) runtime where N = number of characters in the input string and T = number of elements in the target array
- The solution to "Generate Ordered String" has an O(NLogN) runtime. I assumed that I was not allowed to use an out-of-box sorting function, and instead implemented a stable Merge Sort.
Installation
- Run
git clone https://github.com/atrivedi1/LoanSnap_Coding_Challenge.git
in the target directory - Run
npm install
- Run
npm run test
in root folder