This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Prompt: Given a list of session identifiers and requested paths in the form | |
`[{session_id: str, path: str}, …]`, return, in descending order, | |
the sessions with the most path changes, along with the number of changes for each. | |
Example: | |
Input | |
``` | |
[ | |
{"session_id": "aec5075b8f0c40538f40b3ad65ac6196", "path": "/payments"}, | |
{"session_id": "aec5075b8f0c40538f40b3ad65ac6196", "path": "/upgrade"}, |