In Salesforce's technical coding assessment, candidates are evaluated on clean algorithmic problem-solving for "Search Suggestions System".
Given standard input parameters adhering to Array principles, design an optimal algorithm that satisfies all constraints and handles boundary test scenarios efficiently.
Ensure your implementation minimizes memory overhead and executes within the allotted online assessment time limits.
nums = [1, 2, 3, 4, 5], k = 3
3
Applying the optimal Array approach yields the expected solution 3.
Leverage Array combined with String, Binary Search, Trie, Sorting, Heap (Priority Queue) to process the input in optimal O(log N) time complexity.