Recent Interview Questions DS and algorithms

Vishal Gupta
Oct 20, 2022

--

Q1 — enqueue and dequeue using only two stacks!

var inputStack = []; // First stack

var outputStack = []; // Second stack

Q2 — Write a palindrome

“fkahkjdfhkaksjdfhaksdfjhakjddfhkjahksdhfaiuyqewiuryiquweyriyqiuweyriuqiuweryiquweyriuqyweirukajsdhfkahdfjkhakjsdhfkahksdhfakhdjkfqwiueryqiueyriuasdkfjhakjhdfkjashfkajhsdf”

Q3 — Two Sum Problem >

Let ar = [1,2,3,4,5,6,7,8,9]

console.log(twoSum(ar, 9));

MMT interview round 1

https://jsfiddle.net/seodLwj2/54/

--

--

Vishal Gupta
Vishal Gupta

No responses yet