Update appNew update is available. Click here to update.
About
G. L. Bajaj Group of Institutions, Mathura 2025
My Stats
EXP gained
yellow-spark
2380
Level
5 (Champion)
Community stats
Discussions
1
Upvotes
1
Know more
51
Total problems solved
48
Easy
3
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:

5 days

Less

More

Achievements
1
Ronin
Topics
Math
Discussions
Best and Easy Approach in C++ ⭐⭐
Interview problems
vector<int>reverseArray(int n, vector<int> &nums)
{
    auto low = nums.begin();

    auto high = nums.end()-1;

    while(low <= high){

        swap(*low,*high);

        low++;

        high--;

    }

    return nums;
}
profile
Mohit Soni
Published On 08-Nov-2023
74 views
0 replies
1 upvotes