Update appNew update is available. Click here to update.
About
Swami Keshvanand Institute of Technology, Management and Gramothan (SKIT Jaipur) 2024
My Stats
EXP gained
yellow-spark
2909
Level
5 (Champion)
Community stats
Discussions
0
Upvotes
0
Know more
74
Total problems solved
61
Easy
12
Moderate
1
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:

3 days

Less

More

Discussions
Swap Number using XOR
Interview problems

#include <bits/stdc++.h>

vector<int> swapNumber(int x, int y) {    pair<int,int>ans;    x=x^y;    y=x^y;    x=x^y;    ans={x,y};    cout<<ans.first<<" "<<ans.second<<endl; }  

profile
Gungun_c5e0
Published On 15-Jun-2023
81 views
0 replies
1 upvotes