Google Interview Question for Software Engineer / Developers
- 20of 26 votes
You are given two array, first array contain integer which represent heights of persons and second array contain how many persons in front of him are standing who are greater than him in term of height and forming a queue. Ex- grave August 04, 2013 in India
A: 3 2 1
B: 0 1 1
It means in front of person of height 3 there is no person standing, person of height 2 there is one person in front of him who has greater height then he, similar to person of height 1. Your task to arrange them
Ouput should be.
3 1 2
Here - 3 is at front, 1 has 3 in front ,2 has 1 and 3 in front.
| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Algorithm
Interview Type: In-Person
Open Chat in New Window