Lead Backend Developer Interview Questions

9,384 lead backend developer interview questions shared by candidates

""" You are given a matrix as a list of lists, where the inner lists are the matrix rows. This is known as row-major format. Write a function sort_matrix(matrix, by_row) that sorts the matrix by an arbitrary row, such that the columns move along accordingly, when you sort by a certain column. * Don't use any imports or libraries. * Don't transpose the matrix! Example: For the matrix matrix = [[7, 0, 8, 2, 6], [1, 3, 0, 2, 4], [5, 4, 3, 2, 1]] we get: sort by row 0 [0, 2, 6, 7, 8] <- sorted row [3, 2, 4, 1, 0] <- columns moved by sorting – e.g. column (0,3,4) stay together [4, 2, 1, 5, 3] <- columns moved by sorting sort by row 1 [8, 7, 2, 0, 6] [0, 1, 2, 3, 4] <- sorted row [3, 5, 2, 4, 1] sort by row 2 [6, 2, 8, 0, 7] [4, 2, 0, 3, 1] [1, 2, 3, 4, 5] <- sorted row """
avatar

Senior Backend Developer

Interviewed at Babbel

3.5
Jul 11, 2023

""" You are given a matrix as a list of lists, where the inner lists are the matrix rows. This is known as row-major format. Write a function sort_matrix(matrix, by_row) that sorts the matrix by an arbitrary row, such that the columns move along accordingly, when you sort by a certain column. * Don't use any imports or libraries. * Don't transpose the matrix! Example: For the matrix matrix = [[7, 0, 8, 2, 6], [1, 3, 0, 2, 4], [5, 4, 3, 2, 1]] we get: sort by row 0 [0, 2, 6, 7, 8] <- sorted row [3, 2, 4, 1, 0] <- columns moved by sorting – e.g. column (0,3,4) stay together [4, 2, 1, 5, 3] <- columns moved by sorting sort by row 1 [8, 7, 2, 0, 6] [0, 1, 2, 3, 4] <- sorted row [3, 5, 2, 4, 1] sort by row 2 [6, 2, 8, 0, 7] [4, 2, 0, 3, 1] [1, 2, 3, 4, 5] <- sorted row """

Round 1 - Coding JS Code for Permutations of an array/string. And some JS questions like what are promises? Asynchronous Code ? Call, bind and apply differences. NodeJS Eventloop. Differences between cluster and fork in NodeJS. Round 2 - Designing some apis based on some special scenarios using mongodb. It is an assignment based interview. Assignment will containing details of the APIs. Round 3 - Didn't interviewed for it, so no idea.
avatar

SDE1 Backend

Interviewed at Prodigal Technologies

4
Jul 8, 2022

Round 1 - Coding JS Code for Permutations of an array/string. And some JS questions like what are promises? Asynchronous Code ? Call, bind and apply differences. NodeJS Eventloop. Differences between cluster and fork in NodeJS. Round 2 - Designing some apis based on some special scenarios using mongodb. It is an assignment based interview. Assignment will containing details of the APIs. Round 3 - Didn't interviewed for it, so no idea.

Viewing 2521 - 2530 interview questions

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