[ INFO ]category: Behavioral · Onsite difficulty: average freq: first seen: 2021-05-09
[AVERAGE][ONSITE]OnsiteSWE II (Mid-Level)Accepted
$catproblem.md
Round 1:
Find nth node from the end of linked list.
Find first non repeating character from given string.
You are given a list of songs = [1,3,5,10....100] and function random which takes two arguments startIndex and endIndex and returns a random index. You have to play a random song from the list only one time using the random function. Any song should not be played more than once.
int random(int startIndex, endIndex){
returns randomNumber
}
O(N) solution is expected.
Questions on java collections, exception handling.
Round 2:
Questions on current project.
Questions on multithreading
Design APIs for a questionnaire system which will allow the following functions:
Create Questionnaire
Create question
Add questions to Questionnaire
Should support single select MCQ, multi select MCQ, text answer questions
LLD, API design and database design is expected.
Followup questions on database performance optimization.