Sde Interview Questions

16,639 sde interview questions shared by candidates

float calculateTaxes(income, brackets) where "brackets" is a list of pairs, e.g. [ [5000, 0], [10000, 0.1], [20000, 0.2], [10000, 0.3], [null, 0.4], ] This indicates that: The first $5K is untaxed The next $10K is taxed at 10% The next $20K is taxed at 20% The next $10K is taxed at 30% All income above this is taxed at 40% So, for an income of $55K, the tax would be $0K + $1K + $4K + $3K + $4K = $12K. Tax calculator leetcode
avatar

SDE-intern

Interviewed at Oracle

3.5
Sep 30, 2022

float calculateTaxes(income, brackets) where "brackets" is a list of pairs, e.g. [ [5000, 0], [10000, 0.1], [20000, 0.2], [10000, 0.3], [null, 0.4], ] This indicates that: The first $5K is untaxed The next $10K is taxed at 10% The next $20K is taxed at 20% The next $10K is taxed at 30% All income above this is taxed at 40% So, for an income of $55K, the tax would be $0K + $1K + $4K + $3K + $4K = $12K. Tax calculator leetcode

Can you explain what the pseudo-code below is trying to do? array[N] # array of N integers, indexed 0 to N-1; # assume it’s populated with [1,4,2,-2,-9,10,2,12,2,-4,-4,-4,-4,2,6,7] peak = array[0] index = 0 output = [] # array of tuples For x in 1..N-1 if (array[x]*array[x-1] > 0) if peak < 0 and array[x] < peak peak = array[x] index = x if peak >= 0 and array[x] > peak peak = array[x] index = x else output.insert( (index, peak) ) peak = array[x] index = x end if end for return output
avatar

Software Development Engineer (SDE)

Interviewed at PriceLabs

4.5
Aug 5, 2024

Can you explain what the pseudo-code below is trying to do? array[N] # array of N integers, indexed 0 to N-1; # assume it’s populated with [1,4,2,-2,-9,10,2,12,2,-4,-4,-4,-4,2,6,7] peak = array[0] index = 0 output = [] # array of tuples For x in 1..N-1 if (array[x]*array[x-1] > 0) if peak < 0 and array[x] < peak peak = array[x] index = x if peak >= 0 and array[x] > peak peak = array[x] index = x else output.insert( (index, peak) ) peak = array[x] index = x end if end for return output

Technical Round ---------------------- Q1: Reverse a String. Q2: Print the Vowels in the string. Q3: Print the product present in the container by the input. HR Round -------------- Q1: Why do you choose Tech Mahindra. Q2: Are you willing to relocate. Q3: Do you have any other offers in hand.
avatar

Software Development Engineer (SDE)

Interviewed at Tech Mahindra

3.4
Apr 29, 2023

Technical Round ---------------------- Q1: Reverse a String. Q2: Print the Vowels in the string. Q3: Print the product present in the container by the input. HR Round -------------- Q1: Why do you choose Tech Mahindra. Q2: Are you willing to relocate. Q3: Do you have any other offers in hand.

1. find the missing number: 2, 9, 28, 65, __, 217, 344 2. Given a string s, find the length of the longest substring without repeating characters. 3. Find the middle point of a linked list. 4. Given an array arr of integers of size n. We need to compute the sum of elements from index i to j. The queries consisting of i and j index values will be executed multiple times (> 10^9 order0. 5. concepts of node js like promises, async javascript, let const, variable hoisting. 6. asked to write few mongodb queries.
avatar

Software Development Engineer (SDE)

Interviewed at Zetwerk

4.2
Jul 1, 2021

1. find the missing number: 2, 9, 28, 65, __, 217, 344 2. Given a string s, find the length of the longest substring without repeating characters. 3. Find the middle point of a linked list. 4. Given an array arr of integers of size n. We need to compute the sum of elements from index i to j. The queries consisting of i and j index values will be executed multiple times (> 10^9 order0. 5. concepts of node js like promises, async javascript, let const, variable hoisting. 6. asked to write few mongodb queries.

Viewing 1671 - 1680 interview questions

Glassdoor has 16,639 interview questions and reports from Sde interviews. Prepare for your interview. Get hired. Love your job.