Round 1:
Food Distribution (CoderByte)
Function FoodDistribution(arr) read the array of numbers stored in arr which will represent the hunger level of different people ranging from 0 to 5 (0 meaning not hungry at all, 5 meaning very hungry). You will also have N sandwiches to give out which will range from 1 to 20. The format of the array will be [N, h1, h2, h3, ...] where N represents the number of sandwiches you have and the rest of the array will represent the hunger levels of different people. Your goal is to minimize the hunger difference between each pair of people in the array using the sandwiches you have available.
For example: if arr is [5, 3, 1, 2, 1], this means you have 5 sandwiches to give out. You can distribute them in the following order to the people: 2, 0, 1, 0. Giving these sandwiches to the people their hunger levels now become: [1, 1, 1, 1]. The difference between each pair of people is now 0, the total is also 0, so your program should return 0. Note: You may not have to give out all, or even any, of your sandwiches to produce a minimized difference.
Sample Test Cases
Input:5, 2, 3, 4, 5
Output:1
Input:3, 2, 1, 0, 4, 1, 0
Output:4
Remove NonAlphabet from a sentence
You are given a sentence which contains alphabets, numbers, symbols, we should remove the non alphabet and return the sentence.
Input:
cats AND*Dogs-are Awesome
output:
cats ANDDogsare Awesome
Round 2:
Understanding my current project designs and
System design:
Design Nobroker application which has both tenet and owner workflow.
Round 3:
Frontend and backend questions.
VPC, Containers Service, Code security, SSR CSR and optimaztion techniques
Round 4:
IAM, JWT, oAuth, Deployment strategies and database scaling