Skip to content

Instantly share code, notes, and snippets.

View salimdellali's full-sized avatar
💭
🚀 Improving

Salim Dellali salimdellali

💭
🚀 Improving
View GitHub Profile
/**
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"},