Update appNew update is available. Click here to update.
About
Student
Institute Of Engg And Technology 2023
My Stats
EXP gained
yellow-spark
2032
Level
5 (Champion)
Community stats
Discussions
0
Upvotes
0
Know more
101
Total problems solved
75
Easy
26
Moderate
0
Hard
0
Ninja
Jan Jan Feb Feb Mar Mar Apr Apr May May Jun Jun Jul Jul Aug Aug Sep Sep Oct Oct Nov Nov Dec Dec

Current streak:

0 days

Longest streak:

4 days

Less

More

Achievements
Discussions
C++ simple and Understanding code|| 100%
Interview problems

#include <bits/stdc++.h> 

void reverseFunction(vector<int> &arr,int l, int r){

    while(l<=r){

        int temp=arr[r];

        arr[r]=arr[l];

        arr[l]=temp;

        l++;

        r--;

    }

    

}

void reverseArray(vector<int> &arr , int m)

{

    // Write your code here.

    

    int size=arr.size()-1;

    

    reverseFunction(arr,m+1,size);

}

profile
Tarun Kumar Joshi
Published On 15-Oct-2023
76 views
0 replies
0 upvotes