Question: Given an array arr that is a permutation of [0, 1, ..., arr.length - 1], we split the array into some number of "chunks" (partitions), and in…
Sameer Khoja
Lessons Learned: Strings, For Loops
Sameer Khoja
Question 9: Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If targ…
Sameer Khoja
Time complexity
Sameer Khoja
Lessons Learned: binary search, randomization
Sameer Khoja
Question 8: T1 and T2 are two very large binary trees, with T1 much bigger than T2. Create an algorithm to determine if T2 is a subtree of T1. One way …
Sameer Khoja
Lessons Learned: Stacks,
Sameer Khoja
Lessons Learned: recursion, tree traversal
Sameer Khoja
Lessons Learned: Binary Search Tree, recursion
Sameer Khoja
Throughout my four years learning and experiencing Computer Science, I learned a lot of lessons along the way. From writing my first “Hello World” stat…
Sameer Khoja
Lessons Learned: Binary trees, recursion, error values
Sameer Khoja
Lessons Learned: stacks, sorting
Sameer Khoja