โ† Myntra questions

Distinct pairs with difference k and print all substrings

Filed under Myntra

The question

Count all distinct pairs in an array with a difference equal to k, and write a program to print all substrings of a given string.

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

Related Myntra questions

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