Sort Photos by Score While Preserving Other Items
Given a mixed list of items. Each item contains:
type: an item type such asphoto,video, ortext;score: an integer score that is meaningful only whentype == "photo";id: an ite...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
