Lead Backend Developer Interview Questions

12,383 lead backend developer interview questions shared by candidates

there are n blacklisted ip regexes given as an array of strings, it consists of * or '.' eg: *.123.* mathces with "12.1.123.45" , "1.123.435.12", but not with "1.2.3.4". There are 'q' IP requests to be processed given as an array of IP address A request is blocked if it matches with any blacklisted regex ip or IP address that has sent at least 2 requests in the last 5 seconds which is not blocked return 1 if it will be blocked else 0 eg: blacklist =["*111.*" , "123.*" , "34.*"] q = 7 requests = ["123.1.23.34", "121.1.23.34", "121.1.23.34", "34.1.23.34","121.1.23.34", "12.1.23.34", "121.1.23.34"] output: [1,0,0,1,1,0,0]
avatar

Backend Java Developer

Interviewed at UBS

3.7
Nov 3, 2023

there are n blacklisted ip regexes given as an array of strings, it consists of * or '.' eg: *.123.* mathces with "12.1.123.45" , "1.123.435.12", but not with "1.2.3.4". There are 'q' IP requests to be processed given as an array of IP address A request is blocked if it matches with any blacklisted regex ip or IP address that has sent at least 2 requests in the last 5 seconds which is not blocked return 1 if it will be blocked else 0 eg: blacklist =["*111.*" , "123.*" , "34.*"] q = 7 requests = ["123.1.23.34", "121.1.23.34", "121.1.23.34", "34.1.23.34","121.1.23.34", "12.1.23.34", "121.1.23.34"] output: [1,0,0,1,1,0,0]

One key question they asked was to optimize a solution for a specific problem using data structures like heaps or hashmaps. They wanted to understand not just the code but the thought process behind choosing efficient algorithms and how I could further improve time complexity.
avatar

SDE-1 Backend Developer

Interviewed at Samsung Semiconductor Inc (US)

3.9
Sep 11, 2024

One key question they asked was to optimize a solution for a specific problem using data structures like heaps or hashmaps. They wanted to understand not just the code but the thought process behind choosing efficient algorithms and how I could further improve time complexity.

Viewing 6011 - 6020 interview questions

Glassdoor has 12,383 interview questions and reports from Lead backend developer interviews. Prepare for your interview. Get hired. Love your job.