Filter interviews by
I applied via Naukri.com and was interviewed in Sep 2021. There was 1 interview round.
Program to find the Next Smaller Element
Create an empty stack
Traverse the array from right to left
Pop elements from stack until a smaller element is found
If no smaller element is found, output -1
Push the current element onto the stack
Return odd and even numbers from two stacks, one full and one empty, without using any other memory.
Pop elements from full stack and check if it's odd or even
Push odd elements to one stack and even elements to another
Push elements back to full stack in alternating order
Time complexity: O(n), Space complexity: O(1)
Top trending discussions
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
Arrow functions are more concise and have a lexical 'this' binding compared to normal functions.
Arrow functions do not have their own 'this' keyword, they inherit it from the parent scope.
Arrow functions do not have their own 'arguments' object.
Arrow functions cannot be used as constructors with 'new'.
Arrow functions are more concise and have implicit return when no curly braces are used.
forEach is used to iterate over an array and perform a function on each element, while map creates a new array by applying a function to each element.
forEach does not return a new array, while map does
forEach does not modify the original array, while map creates a new array
forEach is used for side effects, while map is used for transformation
Example: forEach - array.forEach(item => console.log(item)), map - const newAr
I applied via campus placement at Maulana Azad National Institute of Technology (NIT), Bhopal and was interviewed in Jul 2024. There were 2 interview rounds.
3 questions easy-medium level leetcode problem I solved 2 completely and 3rd question partially (9/15 test cases passed) to move on to 2nd round
I applied via Company Website and was interviewed in Nov 2024. There was 1 interview round.
1. PEAK ELEMENT QUESTION.
2. COIN DENOMINATION
Collection framework is a set of interfaces and classes in Java that provide a way to store and manipulate groups of objects.
Provides interfaces like List, Set, Map for storing collections of objects
Includes classes like ArrayList, HashSet, HashMap for implementing these interfaces
Allows for easy manipulation, sorting, searching, and iteration of collections
Used in various applications like data processing, data storag
Spring Boot is a Java-based framework used for creating standalone, production-grade Spring-based applications.
Spring Boot simplifies the process of creating Spring applications by providing defaults for configuration and eliminating the need for XML configuration files.
Annotations in Spring Boot are used to simplify the configuration of Spring applications by providing metadata about the application.
Examples of annota...
posted on 22 Nov 2024
I applied via LinkedIn and was interviewed in May 2024. There was 1 interview round.
Request lifecycle in Rails involves routing, controller actions, rendering views, and responding to the client.
1. Request comes in through the browser or API endpoint.
2. Rails router determines which controller and action to route the request to.
3. Controller action processes the request, interacts with the model, and prepares data for the view.
4. View template is rendered with the data from the controller.
5. Response ...
Implement Merge Sort algorithm in Ruby
Divide the array into two halves recursively
Merge the sorted halves back together
Use a helper method to merge the two halves
I applied via Company Website and was interviewed in Jun 2024. There was 1 interview round.
Implement your own state management in React and integrate it into a React application.
I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.
To minimize the sum of grid cells in a square matrix, flip rows or columns as needed.
Identify the rows or columns with the highest values and consider flipping them to reduce the sum
Try different combinations of flipping rows and columns to find the minimum sum
Consider using dynamic programming or backtracking to efficiently explore all possible combinations
Visual Reasoning questions
Mostly string based questions
based on 8 reviews
Rating in categories
Senior Software Engineer
161
salaries
| ₹13 L/yr - ₹30 L/yr |
Software Engineer
82
salaries
| ₹9 L/yr - ₹20 L/yr |
Lead Engineer
40
salaries
| ₹20 L/yr - ₹40 L/yr |
Sdet Lead
19
salaries
| ₹20 L/yr - ₹41 L/yr |
Senior Leader Engineer
16
salaries
| ₹37 L/yr - ₹50 L/yr |
Jio Platforms
Vodafone Idea
TCS
Infosys