โ† PhonePe questions
CodingHardReported in a candidate post, Jul 2025

Check whether B is the 'saddest' permutation of A

Filed under PhonePe

The question

Given array A and a permutation B, where sadness means the most jumbled permutation, determine whether B is the maximally sad arrangement.

No write-up yet. Related questions below have one.

Related PhonePe questions

Collected from public candidate posts and coding forums. Updated Nov 2026.