interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / largest-series-product / largest-series-product.om

10 lines · 551 bytes Raw Blame History
1note Exercism-style exercise "largest-series-product": https://exercism.org/tracks/python/exercises/largest-series-product
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note largestproduct is the largest product of span adjacent decimal digits of s (1 for span 0); or
4note -1 when span is negative, -2 when span is longer than s, -3 when s holds a non-digit.
5note Check it with: sh exercise.sh exercises/largest-series-product
6om2
7fn largestproduct s view uchar * span long to long
8note replace this line with your solution
9trap 13
10end