Luma AI·Machine Learning Engineer·Technical Phone Screen
- Given an array of positive integers, return a binary array indicating whether each consecutive triple of elements can form a valid triangle. The output length should be n minus 2.
“Knew the triangle inequality rule (sum of any two sides must exceed the third) but still fumbled around for a bit on the indexing.”