Easy and efficient solution!
Doesn't work, fails for example "++++++++++".
Thank you for the test case!@StefanPochmann said in C++ 0ms math solution, No DP or backtracking:
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.