
Interview framework
Define Input and Output Requirements How is the input stored? What kind of values are there? Are there any negative values? Will there be any empty data? Can I assume there is always valid input? Will the size/number of data be greater than integer max value? Are we returning indexes/data? What if there are multiple answers? Analyze Data Size, Range, and Scale How big is the size of input? Do we take into account integer overflow? Size of array or N or Length What should we do if the size of data count is greater than Integer range? Suggest we can use linked list own custom data type Consider the Runtime Environment What type of environment will the algorithm be running in? Can I modify the original data? Can I use the latest language features? Walk Through Your Solution Approach Start writing comments in the editor. ...

