SAMMY
Saturday, 17 August 2013
Revere an array till nth number only in java
Revere an array till nth number only in java
Reverse an array till the nth number for eg:
int[] num = {1,2,3,4,5,6,7,8,9};
int n = 5;
reverse num array till n and output should be :
int result = {5,4,3,2,1,6,7,8,9};
can any body help ?
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment