[Community Puzzle] Ted's compiler

https://www.codingame.com/training/easy/teds-compiler

Send your feedback or ask for help here!

Created by @MAWAAW,validated by @codingcri,@Ayza and @FredericLocquet.
If you have any issues, feel free to ping them.

Hello,

first test in python3 seems wrong. Specs say " each > symbol must exactly match a < symbol"
but this is not the case:

Standard Output Stream:

<<>>>
it expects 4, shouldn’t it be 0 ?

Best Regards,
LFR

The longest valid prefix is <<>>
Length: 4

1 Like

thanks @pardouin , now I got it. I thought that the full string should be valid.

I feel as though this is missing a test case - e.g. <><<<<<<<