Software Engineer Interview Questions

467,387 software engineer interview questions shared by candidates

HR: hash function search time, what is O(n) Programming: write a function that get an int array, each int has category which can receive by a given function. category is one of (0,1,2). eg Array[1]=20, get_category(20)=1 sort the int array by the int category. following question, sort without addition array\space
avatar

Software Engineer

Interviewed at Meta

3.5
May 21, 2015

HR: hash function search time, what is O(n) Programming: write a function that get an int array, each int has category which can receive by a given function. category is one of (0,1,2). eg Array[1]=20, get_category(20)=1 sort the int array by the int category. following question, sort without addition array\space

If we have a string : "abc ef 12 g", write a function that takes the pointer to the string reorganizes the string to be: "g 12 ef abc". Note that there are 3 spaces after abc, 2 spaces after ef, and 1 space after 12 in the original string, but the spaces are reversed. So in essence, write a function to reverse a string and then put the words between the spaces back in order. And the string length can be known or not.
avatar

Systems Software Engineer

Interviewed at NVIDIA

4.4
Nov 30, 2018

If we have a string : "abc ef 12 g", write a function that takes the pointer to the string reorganizes the string to be: "g 12 ef abc". Note that there are 3 spaces after abc, 2 spaces after ef, and 1 space after 12 in the original string, but the spaces are reversed. So in essence, write a function to reverse a string and then put the words between the spaces back in order. And the string length can be known or not.

Viewing 2411 - 2420 interview questions

Glassdoor has 467,387 interview questions and reports from Software engineer interviews. Prepare for your interview. Get hired. Love your job.