Golang Developer Interview Questions

407 golang developer 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.

There were three rounds, 1. Technical interview Basic and intermediate questions about golang, with questions ranging on data types, channels and goroutines. Asked me to write a program to check if string is palindrome. 2. System Design Interview: Detailed discussion about architecture of current project, what can be done to improve it, discussing the loopholes Asked to design an application with APIs 3. Managerial Round: Discussion about current project and current role.
avatar

Senior Golang Developer

Interviewed at Siemens

4.1
Jan 2, 2024

There were three rounds, 1. Technical interview Basic and intermediate questions about golang, with questions ranging on data types, channels and goroutines. Asked me to write a program to check if string is palindrome. 2. System Design Interview: Detailed discussion about architecture of current project, what can be done to improve it, discussing the loopholes Asked to design an application with APIs 3. Managerial Round: Discussion about current project and current role.

You decided to use a key-value cache. However, 99% of users are requesting the same information, which creates a bottleneck on a single key. How would you design your cache to prevent this key from becoming a point of contention and ensure better scalability?
avatar

Senior Backend Engineer - Golang

Interviewed at Voodoo

4.3
Dec 9, 2024

You decided to use a key-value cache. However, 99% of users are requesting the same information, which creates a bottleneck on a single key. How would you design your cache to prevent this key from becoming a point of contention and ensure better scalability?

Viewing 121 - 130 interview questions

Glassdoor has 407 interview questions and reports from Golang developer interviews. Prepare for your interview. Get hired. Love your job.