Find first non repeating character from given string.
You are given list of songs = [1,3,5,10....100] and function random which takes two arguments startIndex and endIndex and returns random index. You have to play random song from list only one time using 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 questionnaire system which will allow below 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 db performace optimisation.