Java Coding Interview Practice, Live Session on Pramp

preview_player
Показать описание

In this session, the asked questions are:
- Array Quadruplet
- Decrypt Message

Pramp makes interview prep simple so you can focus on getting dramatically better at interviewing!

Join us and start practicing coding interviews today -

Socials:
Рекомендации по теме
Комментарии
Автор

The Whole Idea is Cool !!!!
Taking Interview of each other . Wow, Loved the idea .
The thing we use to do with each other when we prepared for exams during our childhood.

kunal_chand
Автор

The more optimal solutions would have been O(n^2) time with O(n^2) space complexities, using a hashmap and an array of all pairs of elements
And
O(n^2logn) time and O(n^2) space complexities using a sorted array of all pairs of elements.

shiprasingh
Автор

Hey guys can someone tell me why the two outer for loops are necessary to get the first two elements of the sorted array. Why can’t we implicitly just retrieve them using the indexes under only one for loop

SticPRO
Автор

6:24 why doesn’t the second for loop need to end at “n-1” instead of n. Don’t we need to stop one element earlier then the first for loop since we start an index ahead?

brianramaswami
Автор

much easier way to remap the invalid characters
for(int i=0;i<arr.length();i++)
{
arr[i]= (char) ( ( arr[ i ] - 97 ) % 26 + 97);
}

lekdendorjia
Автор

tried doing "Decrypt message" in java.

nitesh
Автор

Are these employees of pramp or real users? Feels like they deliberately making mistakes to put up a show.

DheeraPrabhakar