AlgoMaster Logo

2097. Valid Arrangement of Pairs

pairs=[[5,1],[4,5],[11,9],[9,4]]
0 / 43
algomaster.io
Step:Start: try every pair as the first one and extend by brute force. 4 pairs to arrange.