# Adarsh Sharma | ~3 years - Solved brute force solution for the db problem - Db design was okaies - Please Skip. - Javascript, Python - MySQL, Mongo - kafka, - Docker & kubernetics # Question 1: [1, 2, 3, 2, 3, 4, 3, 2, 3, 4] maxWeight = 6 [[], [], ....] [4,4,3,2,2,2,1,1] # Question 2: - user service - chat service - one to one chat - text message - group chat - list of conversations, sorted, paginated. - list of messages, sorted, paginated. user: userId, phone, group: groupid, groupname group mapping: group id, userid contact: contactId, userId , usercontactId text: contactId, text, time, sender, reciever , isgroup, groupId userId find contact where senderId Or recieverId = userid join text in contact id