Three way partitioning of an array around a given value

1 min read

https://practice.geeksforgeeks.org/problems/three-way-partitioning/1

Smallest subarray with sum greater than a given value
Minimum swaps required to bring elements <= K together