Waymo logoWaymo
Coding·45 minMembers

Serialize Arithmetic Expression Tree with Minimum Parentheses

Members only

Onsite coding: given a syntax tree whose nodes are variables or one of `+ − × ÷`, serialize the tree to an infix string using the minimum number of parentheses required to preserve evaluation semantic...

SWE
tree
recursion
parsing
string-processing
hard
Frequency
Single report
Last asked
2026-04-27
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...