1.problem-related to stack that implements min stack. 2.find duplicate in the array. oops ,DBMS ,
Lead Backend Developer Interview Questions
6,291 lead backend developer interview questions shared by candidates
Technical : It started with General Aptitude questions. Then I was asked to implement algorithms . Here are some questions: 1) Write a function that takes an array as input and returns a reversed version of the input array. 2)Returns an element of the array which has a frequency greater than floor(n/2). If no such element exists, it would return -1. Latter I was asked to normalize tables and write SQL queries .
What are ACID Properties
Trees and array questions were there, easy and fun rounds.
To prepare you can do some leet code questions.
Q: If we initialize a null value to a String reference variable then what length() of the String class will return and why?
Q: Count the number of leaf nodes in a Binary Tree. Only the approach was asked not code.
Q: Write an SQL query that prints city names along with the number of citizens in it. The scenario was something like that two tables are given, the city names were in one table and no of citizens were in another table and there is a common attribute in both the tables(foreign key concept).
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
write a code to find the maximum number of palindromic substrings in a string.
Viewing 3291 - 3300 interview questions