Ad
  • Custom User Avatar

    You could have use
    if (i == 0 && expression.Split('=')[1].Count(c => c != '?') == 0) { continue; }
    istead of
    if ((expression.Contains("??")) && (i == 0)) { continue; }
    That way it passes solveExpression("1?*1?=1??")