Extract Podcast Episode Numbers
Extract Podcast Episode Numbers
EasyStrings100% accepted
Meera curates the podcast collection on Gaana Music. Podcast episodes are titled in a consistent format like 'Show Name - Episode 42', and she needs to automatically extract episode numbers to track content.
Approach
Given podcast episode titles in format 'Name - Episode XXX', extract all episode numbers and return them as integers in order.
Input
["Tech Talk - Episode 42", "Tech Talk - Episode 5", "Tech Talk - Episode 100"]
Output
[42,5,100]
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards