Ad
  • Custom User Avatar

    I did not notice the words "sells the tickets strictly in the order people follow in the line".
    However my wrong solution still can be submited.
    Line = 50 25 - Expected: 'No', instead got: 'Yes'

  • Custom User Avatar

    There is something wrong with the random number, what can I do ??

  • Custom User Avatar

    I have succeeded in them all except : (I don't Know what is the wrong) --->> My programming code at the bottom

    test3(LineTests)
    expected:<[YES]> but was:<[NO]>

    AND :

    test6(LineTests)
    expected:<[YES]> but was:<[NO]>

    Code :

    int sum = 0;
    for (int i = 0; i < peopleInLine.length - 1 ; i++ )
    sum = sum + peopleInLine[i];
    if (sum == peopleInLine[peopleInLine.length - 1])
    return "YES";
    return "NO";