2 Java questions on CoderPad. I was asked to complete the code and pass their test cases. First question: Given a String[][] array of names and score. You have to find the best average score among the given students. Let's say the array has Ram:100, Shyam 90, Ram:70, so average score for Ram would be 170/2 = 85 and shyam would be 90/1 =90, so return 90. Also if answer is not integer return floor of the answer. Second Question: Given a string, return starting index, max_count of a character appearing continuously. Example: "aabbbbcdAA101aaa" return {2,4} since b char has the max continuous count.
Check out your Company Bowl for anonymous work chats.