Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Episode 4-Play complete song after clicking on PREV #4

Open
kanch21 opened this issue Sep 30, 2021 · 0 comments
Open

Episode 4-Play complete song after clicking on PREV #4

kanch21 opened this issue Sep 30, 2021 · 0 comments

Comments

@kanch21
Copy link
Contributor

kanch21 commented Sep 30, 2021

Scenario- Play a song for X minutes, click on previous and let the same song play completely.

Note- Click on PREV means you are wanting to play the same song from start.

Flow of scenario- Play a song for X min-> Click on PREV-> Let the same song be played completely.

Issue-

  1. The listening time gets computed upto (Play a song for X min-> Click on PREV). But it does not compute for (Click on PREV-> Let the same song be played completely.)

Note- There is no record for the song in the file if its played completely as the next record is the next song whatsoever. So we need to check how this can be incorporated.

Input Snippet-
Episode 4 input

The Python code needs to be implemented.
Tip- We can build a logic to compute the listening time between PREV(idx-1)of song 1 and PLAY(idx) of song 2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant