You are viewing a single comment's thread. Return to all comments →
test case 5 was giving wrong answer for same reason. If I've been here earlier then I could've saved my hackos
import re str = ' '.join([input() for _ in range(int(input()))]) for _ in range(int(input())): print(len(re.findall(input().replace('our','ou?r')+r'\b', str)))
Nice one.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
UK and US: Part 2
You are viewing a single comment's thread. Return to all comments →
test case 5 was giving wrong answer for same reason. If I've been here earlier then I could've saved my hackos
Nice one.