The TransCompilator

Solved LeetCode program · 329 of 1,000

#0448 · Find All Numbers Disappeared in an Array

Easy Array chunk-07.md

Original English source

Keep a shared nums holding 4, 3, 2, 7, 8, 2, 3, and 1. Keep a shared tally of 0.
To seek from spot (a whole number) with value (a whole number). If spot is more than 7, return. If item spot of nums is value, add 1 to tally. Seek from spot plus 1 with value.

The answers is an empty list of whole numbers.
For every value from 1 to 8.
Set tally to 0. Seek from 0 with value. If tally is 0, Place value into answers.

The line is empty text.
For each answer in answers.
If the length of line is more than 0, Place "," into line. Place format whole number answer as text into line.

Show line.

Open in Playground Browse all 1,000 problems

Expected stdout

5,6