Basics for Software Interview

Table of Contents Binary Search Algorithm to Find the Smallest Index of an Element Implementation QuickSort Implementation MergeSort Implementation HeapSort Implementation Merge Overlapping Intervals Implementation Binary Search Algorithm to Find the Smallest Index of an Element Binary search is a highly efficient algorithm used to find the position of a target value within a sorted array. The algorithm works by repeatedly dividing the search interval in half. If the value of the search key is less than the item in the middle of the interval, the algorithm narrows the interval to the lower half....

5 min · 954 words · Apurva Khatri

Technical Interview Questions for Interviewee

String Should the input contain only alphanumeric characters, or can it include other characters as well? How should uppercase and lowercase characters be treated—should they be considered equivalent or distinct? Array Is the input sorted? If the task involves sorting, should it be done in-place, or is extra space allowed? Is it permissible to modify the input array? Can the array contain duplicate values? If so, how should duplicate values be handled or treated?...

1 min · 105 words · Apurva Khatri