LeetCode Question · Feb 2022

Amazon SDE 1 Technical round

6 upvotes 1,466 views 5 replies

Question Details

Return all lexicographically next greater permutation of numbers. for eg: [1,2,3] output: 1,3,2 2,1,3 2,3,1 3,1,2 3,2,1 1,2,3 (not just next greater permutation, but ALL lexicographically greater permutation of numbers). If someone can direct me to a…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Backtracking Stack