#3637
Trionic Array I
pupil · 450 · lc easy +26 · 49.5% accepted · 469 likes · top 36%
Description
An integer array nums of length n is trionic if there exist indices p and q with 0 < p < q < n - 1 such that nums[0..p] is strictly increasing, nums[p..q] is strictly decreasing, and nums[q..n-1] is strictly increasing. Return true if nums is trionic, otherwise false.
Code
1
2
3