4 ms·
Maybe I'm doing something wrong, but passing it "3 * 4 + 5 * 6" gives me 102 instead of 42.
by jolmg 5y ago
Maybe I'm doing something wrong, but passing it "3 * 4 + 5 * 6" gives me 102 instead of 42.
- mananaysiempre 5y agoYou are correct; I seemed to remember there was a catch but was too lazy to check, sorry. This isn’t a precedence parser, that was 18b, while this one solves 18a, which was just to resolve parentheses correctly and disregard precedence. (Original comment fixed.)