Exactly three adjacent 3 in lists: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Ring}}: needs improvement) |
|||
Line 151:
=={{header|Ring}}==
<lang ring>
see "working..." + nl
Line 165:
good = 0
cnt = 0
for p = 1 to len
if list[n][p] = 3
good++
Line 171 ⟶ 172:
next
if good = 3
for m = 1 to
if list[n][m] = 3 and list[n][m+1] = 3 and list[n][m+2] = 3
cnt++
|