Buck The System

Problem


Given a comma separated list of integers, which should be increasing in value, output the number of integers which fail to increase in value from the previous integer.


Example


Sample Input Argument 1 (the list of integers)

1,2,6,12,10,18,19,300,90


Expected Result

2


Guidelines

  • The list of integers will contain at most 100 numbers
  • An integer will never be the same twice in a row (ex. 1,2,2)
  • All integers will be positive
Test Cases
Test Case 1
Argument 1 1,2,3,4,5,6,2,7,8,9,10,11,2,12,13,14,2,15,16
Expected Output 3
Test Case 2
Argument 1 10,20,30,40,50,60,70,80,90,100
Expected Output 0
Test Case 3
Argument 1 1,100,2,200,3,300,4,400,5,500,6,600,7,700,8,800
Expected Output 7
Your Submission
You are not logged in. To submit a solution, click the Login button at the top right.
Submissions

Login/Register

At the moment only Discord login is supported.

Login with Discord