Agoda Round 1: Staff Interview Question
Summary
I interviewed for a Staff position at Agoda and was asked two coding questions.
Full Experience
- Find pivot element from a given array, all elements towards left are smaller and all elements towards right are greater than pivot.
- Given a chemical formula like CH4, return its weight, each element has a separate weight like C has 12, H has 1, O has 2.
Interview Questions (2)
Find Pivot Element in Array
Find pivot element from a given array, all elements towards left are smaller and all elements towards right are greater than pivot.
Calculate Molecular Weight from Chemical Formula
Given a chemical formula like CH4, return its weight, each element has a separate weight like C has 12, H has 1, O has 2.