Senior Software Developer Interview Questions

7,038 senior software developer interview questions shared by candidates

Given an array A positive integers, sort the array in ascending order such that element at index K in unsorted array stays unmoved and all other elements are sorted. Input : arr[] = {10, 4, 11, 7, 6, 20} k = 2; Output : arr[] = {4, 6, 11, 7, 10, 20} Input : arr[] = {30, 20, 10} k = 0 Output : arr[] = {30, 10, 20}
avatar

Senior Software Developer

Interviewed at Bank of America

3.9
Apr 30, 2018

Given an array A positive integers, sort the array in ascending order such that element at index K in unsorted array stays unmoved and all other elements are sorted. Input : arr[] = {10, 4, 11, 7, 6, 20} k = 2; Output : arr[] = {4, 6, 11, 7, 10, 20} Input : arr[] = {30, 20, 10} k = 0 Output : arr[] = {30, 10, 20}

Viewing 1841 - 1850 interview questions

Glassdoor has 7,038 interview questions and reports from Senior software developer interviews. Prepare for your interview. Get hired. Love your job.