i
Sensiple
Filter interviews by
Program to sort an array of strings using Collections
Create an array of strings
Use Arrays.asList() to convert array to List
Use Collections.sort() to sort the list
Convert the sorted list back to array using toArray()
Print the sorted array
Top trending discussions
posted on 16 Sep 2021
I appeared for an interview before Sep 2020.
Round duration - 50 minutes
Round difficulty - Medium
Round duration - 20 minutes
Round difficulty - Medium
You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.
Given an array and a target sum, find pairs of elements that add up to the target sum.
Iterate through the array and for each element, check if the complement (target sum - current element) exists in a hash set.
If the complement exists, add the pair to the result list. Otherwise, add the current element to the hash set.
Sort the pairs based on the first element and then the second element to meet the required output form
Round duration - 20 minutes
Round difficulty - Easy
Round duration - 40 minutes
Round difficulty - Hard
Pointers in C/C++ are variables that store memory addresses. They are used to manipulate memory directly and improve performance.
Pointers are declared using an asterisk (*) before the variable name.
Pointers can be used to dynamically allocate memory using functions like malloc() and free().
Pointers can be used to pass variables by reference to functions.
Tip 1 : Do atleast 1 project
Tip 2 : Practice Data structure programming questions
Tip 3 : Prepare concepts with examples (Coding/Numericals)
Tip 1 : Mention Projects
Tip 2 : Mention only those technologies which you are confident enough.
Tip 3 : Mention extra curricular activities if have.
I applied via Naukri.com and was interviewed before Nov 2021. There were 2 interview rounds.
I applied via Walk-in and was interviewed before Mar 2021. There were 3 interview rounds.
Aptitude test
Current affairs
I applied via Campus Placement and was interviewed in Jun 2024. There were 2 interview rounds.
It was ok. I was not able to solve all the questions.
To remove the last element from a linked list, iterate to the second last node and update its next pointer to null.
Iterate through the linked list to find the second last node
Update the next pointer of the second last node to null
I applied via Naukri.com and was interviewed in Jun 2022. There were 3 interview rounds.
Find the 2nd largest element in an array with the least time complexity.
Sort the array in descending order and return the element at index 1.
Initialize two variables to keep track of the largest and second largest elements.
Iterate through the array and update the variables accordingly.
Return the second largest element.
I applied via Google and was interviewed in Aug 2023. There were 3 interview rounds.
Coding questions about array and string.
Cosing questions about sql and ds.
I applied via Campus Placement and was interviewed in Dec 2024. There was 1 interview round.
2 questions of DSA medium to hard
posted on 17 Oct 2024
I applied via Walk-in
To implement a queue using a stack, use two stacks and simulate the queue operations.
Use two stacks, one for enqueue operation and one for dequeue operation.
For enqueue operation, simply push elements onto the stack used for enqueueing.
For dequeue operation, if the dequeue stack is empty, pop all elements from enqueue stack and push onto dequeue stack.
Then pop from the dequeue stack to simulate dequeue operation.
A linked list is a data structure consisting of nodes where each node points to the next node in the sequence.
Create a Node class with data and next pointer
Initialize a head pointer to null
Add nodes by updating next pointers
Traverse the list by following next pointers
based on 1 review
Rating in categories
System Analyst
139
salaries
| ₹2 L/yr - ₹9.3 L/yr |
Test Engineer
60
salaries
| ₹2.4 L/yr - ₹6 L/yr |
Junior Developer
47
salaries
| ₹2 L/yr - ₹4.1 L/yr |
Senior System Analyst
38
salaries
| ₹5 L/yr - ₹16.2 L/yr |
Senior Systems Engineer
35
salaries
| ₹3.6 L/yr - ₹13 L/yr |
Maxgen Technologies
Value Point Systems
JoulestoWatts Business Solutions
F1 Info Solutions and Services