Filter interviews by
Find the missing number in an array containing numbers from 1 to n.
Iterate through the array and calculate the sum of all numbers from 1 to n.
Calculate the sum of all numbers in the given array.
Subtract the sum of array from the sum of all numbers to find the missing number.
Top trending discussions
I applied via campus placement at National Institute of Technology (NIT), Kurukshetra and was interviewed before Mar 2021. There were 2 interview rounds.
There were DSA questions and time limit was 1 hr
Factorial calculation using tabulation in dynamic programming
Create an array to store factorial values up to n
Initialize the array with base cases (0! = 1, 1! = 1)
Iterate from 2 to n and calculate factorial using previous values in the array
Return the factorial value at index n
Mcqs and 2 coding questions
I applied via LinkedIn and was interviewed in Jul 2024. There was 1 interview round.
Regex generator- used dp
I applied via Recruitment Consulltant and was interviewed in Aug 2023. There were 2 interview rounds.
Merging two sorted arrays into a single sorted array
Create a new array to store the merged result
Iterate through both arrays simultaneously, comparing elements and adding the smaller one to the result array
Handle cases where one array is longer than the other by appending the remaining elements
Patch and post are HTTP methods used in API testing to update and create resources, respectively.
PATCH method is used to update an existing resource in the API
POST method is used to create a new resource in the API
Both methods are commonly used in RESTful APIs for CRUD operations
Example: PATCH /api/users/123 to update user with ID 123
Example: POST /api/users to create a new user
My automation framework is a data-driven framework using Selenium WebDriver and TestNG for test execution and reporting.
Uses Selenium WebDriver for interacting with web elements
Utilizes TestNG for test execution and reporting
Follows a data-driven approach for test data management
I applied via campus placement at KIIT University, Bhuvaneshwar and was interviewed in Jun 2023. There were 4 interview rounds.
Hackerrank Test including 4 coding and few mcq questions
I was interviewed in May 2022.
Round duration - 60 Minutes
Round difficulty - Medium
This round was scheduled with the SDE-2, we started with the introduction than he jumped to the dsa questions. First question he asked me was leetcode 3 sum problem, we discussed the approach than I wrote the code for that problem. Second question was of arrays and maps I didn't remember the exact question but that was also some modified version of k sum subarray. Than he asked many questions related to oops, I answered most of them than he asked me for any qiuestions and we dropped the call.
Given an array or list ARR
consisting of N
integers, your task is to identify all distinct triplets within the array that sum up to a specified number K
.
A t...
You are provided with an array arr
of size N
and an integer K
. Your objective is to compute the maximum sum of a subset of the array such that this sum does not exceed K
.
In this approach, we will iterate over all the possible subsets of the given array, and then we will find the maximum sum subset whose sum is not greater than K.
The total number of subsets of an array is 2^N or 1 << N in the bitshift operator.
Algorithm:
Round duration - 40 Minutes
Round difficulty - Medium
This round was arranged with the Engineering Manager, we started with the introduction then he asked me to explain my project, I did that. After that he asked me one pattern question, I coded that than he asked me one more array question of finding mean, mode, median, I partially solved that question. Than he asked me for any questions and we dropped the call.
Create a grid pattern of size R rows and C columns, where each cell contains a diamond-like shape of size S. The diamond shape is made with characters ‘/’ and ‘\’ for the bord...
Approach: Since each diamond’s size is (2 * s) * (2 * s). So the total size of the grid will be (2 * s * r) * (2 * s * c). So we will iterate in all the points on the grid and use some basic algebra(modular arithmetics) to find the diamond to which this point belongs. Then we can identify the type of location(i.e. either this point is a boundary or not) as we can divide the diamond into four equal parts(top-...
Given an integer array ARR
of size N
, you need to compute the following three statistical measures:
mean()
to calculate the mean o...I really didn't remember the eaxct approach that I used.
Tip 1 : Practice at least 300 Questions from leetcode
Tip 2 : Prepare your project.
Tip 1 : Add at least 4 projects.
Tip 2 : Add your coding profiles and GPA.
I applied via Naukri.com and was interviewed before Feb 2023. There were 2 interview rounds.
Aptitude questions to be asked in this round
Write a Java program to sort array in ascending order
Interview experience
Collections Executive
32
salaries
| ₹2 L/yr - ₹4 L/yr |
Data Scientist
23
salaries
| ₹8.5 L/yr - ₹17 L/yr |
Assistant Manager
21
salaries
| ₹4.8 L/yr - ₹18.5 L/yr |
Sales Executive
19
salaries
| ₹2.7 L/yr - ₹3.8 L/yr |
Data Analyst
18
salaries
| ₹4 L/yr - ₹13.1 L/yr |
MoneyTap
ZestMoney
Slice
Paysense Services India