Skip to content
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

Created a new file Rotate_number_by_k.cpp #1

Merged
merged 1 commit into from
Jul 27, 2021
Merged

Conversation

akshatnema
Copy link
Owner

@akshatnema akshatnema commented Jul 27, 2021

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 amritansh22#482

Sample Test case

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

please merge this PR

@akshatnema akshatnema merged commit f097d4c into master Jul 27, 2021
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.

1 participant