9 comments (9 comments)0 reactions (0 reactions)0 assignees (0 assignees)C++3,724 forks (3,724 forks)batch import
Hacktoberfestadd codenew algorithm
Repository metrics
- Stars
- 13,462 stars (13,462 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
The program must take a number as input and give the next larger number with same digits as output
For eg :- If input is 697 output is 769
If input is 5674 output is 5746
Contributor guide
- Research direction
- Implement the algorithm to find the next lexicographic permutation of digits. You can study the 'next permutation' pattern (e.g., from C++ std::next permutation or algorithm steps). Write a function that takes an integer, converts to string/vector of digits, applies the algorithm, and returns the next larger number as integer.
- Tech stack
- None
- Domain
- backend
- Issue type
- Feature
- Prerequisites
- C++Git