Take the following func in Python: def func(input1, input2): j = 0 count = 0 ret = "" i = 0 while i < len(input1): ret = ret + input1[i] if input1[i] == input2[j]: j = j + 1 if len(input2) == j ret = ret[0: (i-j)+1] + ("-" * len(input2)) j = 0 count = count + 1 i = i + 1 return ret, count For the following inputs, here's the outputs (for example only): bba, bb => --a, 2. It's like a masking function of the 2nd string inside the 1st string. The question: The function has a small bug, find an input that the function will return an incorrect ouput for it. After that, fix the bug.
Backend Software Engineer Interview Questions
9,111 backend software engineer interview questions shared by candidates
How would you develop a custom module?
3 theory question they ask
4 logical question they ask
"How would you improve your code performance"
What to do if a query to a database is slow?
Tech interview was more about what I have done so far ? What technology, tools were used in previous projects ? Then somemore specific question like - What is DI ? How will you write method to handle HTTP GET Request ? Some indirect questions about Interface.
3rd round - Given the co-ordinates of all the coffee shops, and co-ordinates of the user, find n nearest coffee shops.
Round 1: Array based and file i/o questions MCQs Round 2: Strings , Linked list based questions, SQL Queries
what is git rebase what is git merge
Viewing 971 - 980 interview questions