- 0 Posts
- 2 Comments
Joined 2 年前
Cake day: 2023年6月14日
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
python 3 using regex:
import re i=input() p=r'(?:\(\)|\{\}|\[\])' while re.search(p,i): i=re.sub(p,'',i) print(i)
edit: made it uglier for the least characters challenge
It’s probably adding compilation time, because a system that runs my python regex in 40ms should probably run this rust program in less than 1ms