Array.findLast() Playground

Wulan’s parcel weights on train #1: find walks from the locomotive, findLast from the tail, each stopping at its first yes, and what happens to the real train…

The key idea

findLast searches from the back without turning anything round

Common mistakes

Try it in this playground