Simple Code to count appearance of a specific Number in Array
- or -
Post a project like this2918
$10
- Posted:
- Proposals: 2
- Remote
- #1105407
- Awarded
Description
Experience Level: Entry
General information for the website: Small Script
Description of requirements/features: I have multiple lines with numbers as a String:
02:16 PR 116_ 0 4 4 2 5 0 4 1 0 0
02:17 PR 117_ 4 4 2 5 8 4 1 7 6
Now I want to count the different "space" between the zeros.
'0' appears:
1x times after [4] numbers
1x times after [1] numbers
1x times after [0] numbers
Extra notes:
Description of requirements/features: I have multiple lines with numbers as a String:
02:16 PR 116_ 0 4 4 2 5 0 4 1 0 0
02:17 PR 117_ 4 4 2 5 8 4 1 7 6
Now I want to count the different "space" between the zeros.
'0' appears:
1x times after [4] numbers
1x times after [1] numbers
1x times after [0] numbers
Extra notes:
James K.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
31 Mar 2016
Germany
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies