Merge 2 sorted arrays A and B Result should end up in B, which has available space for all items Utilize the space in B, not using temporary arrays Result in sorted array in B A { 2, 5, 8, 12, 15} B { 3, 5, 7, 9, , , , , , }
Software Developer Interview Questions
711,708 software developer interview questions shared by candidates
sort an array N consists of four numbers, each number can be repeated k times, where k < n. Example: sort 1111144422223 to 1111122223444. Try to be as efficient as you can, not just O(n^2)
How would you sort an array if you had infinite RAM? Infinite memory?
Getting the min from a stack in O(1) time
2 Coding questions, providing complete solution is the main thing they want and not the optimization.
Given a database, where we know some portion of data (e.g. say 20%) is accessed more than the other portion of the database by the client. We have a frontend that client requests data from. Design a data structure that will increase the efficiency of access of objects. And we know that we can only hold on to n elements in memory.
SQL query to find department wise count
Given an array of numbers, e.g. [5,0,9,2,5,5,5] - return all the consecutive numbers that add up to N.
Write a.SQL.query for selecting the second top most salary of an employee from employee table.
What do you know about embedded system? at which stage the var x is stored in the memory ?
Viewing 2061 - 2070 interview questions