""" 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 """
Lead Backend Developer Interview Questions
9,384 lead backend developer interview questions shared by candidates
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.
C, C++, DS, Algo, Multithreading.
Design a user schema for an app that allows you to follow users and show their messages on your timeline feed.
what are the types of Spring Bean Scopes ?
Implement Redis like DB Scrape HackerNews General backend questions
How do you decide how many tests to write for your code
DSA coding Question and Table mapping questions
Mostly they asked about Core Java and Data Structures . Some Challenging Questions from Database like Highest Salary Without Using Limit or Disadvantages of Indexing.
One of the key things they asked me was about my previous project experience
Viewing 2521 - 2530 interview questions