Skip to content

Added Rotate_number_by_K.cpp #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2021
Merged

Conversation

akshatnema
Copy link
Contributor

Rotate the digits of number by K

Program motive

It inputs a number from the user( as a string in ), inputs the number of shifts(as integer K) wants in number and outputs the resulting number after required shifts.

Issue

This PR is under issue #482

Sample Test case

number => 123456
k => 2 (rotate clockwise | shift left)
result => 345612

please merge this PR @amritansh22

@welcome
Copy link

welcome bot commented Jul 27, 2021

Thanks for opening this pull request! Please be sure that you have checked out our contributing guidelines.

@amritansh22
Copy link
Owner

Hey @akshatnema
Please star this repository to show your support. In the meantime I am reviewing the PR.

@akshatnema
Copy link
Contributor Author

akshatnema commented Aug 9, 2021

@amritansh22 please merge this PR if you have reviewed it.

@amritansh22
Copy link
Owner

@akshatnema Done. Thanks a lot for your valuable contribution.

@amritansh22 amritansh22 merged commit ab66754 into amritansh22:master Aug 16, 2021
@welcome
Copy link

welcome bot commented Aug 16, 2021

Congrats on merging your first pull request! We are proud of you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants