The TransCompilator

Solved LeetCode program · 336 of 1,000

#0456 · 132 Pattern

Medium Array chunk-07.md

Original English source

The numbers is a list of 1, 2, 3, and 4. The last is the last position of numbers. The found is 0.
For every first from 0 to last.
For every second from first plus 1 to last.
For every third from second plus 1 to last.
If item first of numbers is less than item third of numbers and item third of numbers is less than item second of numbers, set found to 1.

If found is 1, show true, otherwise show false.

Open in Playground Browse all 1,000 problems

Expected stdout

false