Skip to content

[Dana] Add rotatefun program#44

Merged
kostis merged 2 commits intokostis:masterfrom
nspyrop03:myprograms
Feb 18, 2025
Merged

[Dana] Add rotatefun program#44
kostis merged 2 commits intokostis:masterfrom
nspyrop03:myprograms

Conversation

@nspyrop03
Copy link
Contributor

Added rotatefun.dana program.
This program solves the fun leetcode problem 396. Rotate Function.

Input:

  1. n: number of integers the user will give
  2. n integers stored in int array called nums

Output:

  1. the result of the problem followed by a new line character

@kostis kostis changed the title Added rotatefun dana program [Dana] Add rotatefun program Feb 18, 2025
@kostis
Copy link
Owner

kostis commented Feb 18, 2025

Thanks for your contribution.

It would be better if this PR gets extended with a set of rotatefun.input and rotatefun.result files containing a sample input and expected result. (Look also in e.g. the alan/programs dir where similar files exist for many programs.)

Then I will merge this.

@nspyrop03
Copy link
Contributor Author

I've pushed the set of files for input and expected output.

@kostis kostis merged commit 67010de into kostis:master Feb 18, 2025
2 checks passed
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