GfG QA is closing soon... Please refer PRACTICE or GfG now on wards !!

Finding good picture from a trip

I was asked this coding question, not sure what the solution is:

I went for a trip and I keep taking pictures . After every picture I will mark if the picture is good or bad . After going to home I want  to see all the pictures in the following way -

 

1. Get the picture taken after picture x . 

2. Get the next good picture take after time "t" .

If you need to make an app how would you do this so that if is efficient in terms of space and time

asked Nov 29, 2016 by anonymous
...