Software Engineer Backend Interview Questions

2,346 software engineer backend interview questions shared by candidates

You are given an array hours that represents the number of hours an employee worked each day. A day is classified as a tiring day if the employee worked strictly more than 8 hours that day. A well-performing interval is a consecutive sequence of days where the number of tiring days is strictly greater than the number of non-tiring days. Your task is to find the length of the longest well-performing interval. For example, if hours = [9, 9, 6, 0, 6, 6, 9]: Days with hours > 8 are tiring days: positions 0, 1, and 6 (values 9, 9, 9) Days with hours ≤ 8 are non-tiring days: positions 2, 3, 4, 5 (values 6, 0, 6, 6) The interval from index 0 to 2 has 2 tiring days and 1 non-tiring day, making it well-performing The entire array from index 0 to 6 has 3 tiring days and 4 non-tiring days, which is not well-performing The goal is to find the maximum length among all possible well-performing intervals.
avatar

Backend Software Engineer (Golang)

Interviewed at NetApp

3.8
Mar 5, 2026

You are given an array hours that represents the number of hours an employee worked each day. A day is classified as a tiring day if the employee worked strictly more than 8 hours that day. A well-performing interval is a consecutive sequence of days where the number of tiring days is strictly greater than the number of non-tiring days. Your task is to find the length of the longest well-performing interval. For example, if hours = [9, 9, 6, 0, 6, 6, 9]: Days with hours > 8 are tiring days: positions 0, 1, and 6 (values 9, 9, 9) Days with hours ≤ 8 are non-tiring days: positions 2, 3, 4, 5 (values 6, 0, 6, 6) The interval from index 0 to 2 has 2 tiring days and 1 non-tiring day, making it well-performing The entire array from index 0 to 6 has 3 tiring days and 4 non-tiring days, which is not well-performing The goal is to find the maximum length among all possible well-performing intervals.

in 1st coding round There is an array of elements and you have to print the result after removing continuous same elements. Ex -> [tom , jerry, jerry, tom] Output -> [] Ex -> [tom, jerry, jerry, tom, tom, jerry, tom] [tom jerry Jerry tom ] output-> [] [tom jerry Jerry tom jerry tom] op= [Jerry tom ] 2nd ques Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two numbers be numbers[index1] and numbers[index2] where 1 <= index1 < index2 <= numbers.length. ex -> Input: numbers = [2,7,11,15], target = 9 Output: [1,2] Ex -> [-1, 0] target = -1 Output -> [1, 2
avatar

Software Engineer II SDE2 Java Backend

Interviewed at HashedIn by Deloitte

4
Feb 4, 2022

in 1st coding round There is an array of elements and you have to print the result after removing continuous same elements. Ex -> [tom , jerry, jerry, tom] Output -> [] Ex -> [tom, jerry, jerry, tom, tom, jerry, tom] [tom jerry Jerry tom ] output-> [] [tom jerry Jerry tom jerry tom] op= [Jerry tom ] 2nd ques Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two numbers be numbers[index1] and numbers[index2] where 1 <= index1 < index2 <= numbers.length. ex -> Input: numbers = [2,7,11,15], target = 9 Output: [1,2] Ex -> [-1, 0] target = -1 Output -> [1, 2

Viewing 721 - 730 interview questions

Glassdoor has 2,346 interview questions and reports from Software engineer backend interviews. Prepare for your interview. Get hired. Love your job.