ATS resume help
Відкрити в Telegram
WhatsApp Me https://wa.me/917674087200 ✅ ATS-Friendly Resumes ✅ Higher Interview Calls ✅ Free Tips + Templates
Показати більше3 691
Підписники
-224 години
-217 днів
-8330 днів
Архів дописів
3 691
#include <bits/stdc++.h>
using namespace std;
vector<int> batonPass(int n, long t){
vector<int> ans;
int oddEven = 1,count=0;
while(true){
if(oddEven & 1){
if(count==0){
for(int i=0 ; i<n ; i++){
count++;
if(t == count){
if(i!=n-1){
// cout << i+1 << " " << i+2;
ans.push_back(i+1);
ans.push_back(i+2);
return ans;
}else{
ans.push_back(i+1);
ans.push_back(i);
return ans;
}
}
}
}else{
for(int i=1 ; i<n ; i++){
count++;
if(t == count){
if(i!=n-1){
ans.push_back(i+1);
ans.push_back(i+2);
return ans;
}else{
ans.push_back(i+1);
ans.push_back(i);
return ans;
}
}
}
}
oddEven++;
}else{
for(int i = n-2 ; i>=0 ; i--){
count++;
if(t == count){
if(i!=0){
ans.push_back(i+1);
ans.push_back(i);
return ans;
}else{
ans.push_back(i);
ans.push_back(i+1);
return ans;
}
}
}
oddEven++;
}
}
}
int main()
{
int friends,timee;
cin >> friends >> timee;
vector<int> ans = batonPass(friends,timee);
for(auto it : ans) cout << it << " ";
return 0;
}
Pass the baton code 👆👆
C++14
3 691
Oct 13 capgemini exam help available ❤️✅@placementsBro
100 percent clearance ✅✅
Book your slots as soon as possible 👍
We can't help all❌instant helps not available
3 691
def FindRemainingBalls(direction, strength):
asteroids = []
for i in range(0, len(direction)):
if direction[i] < 0:
asteroids.append(strength[i]*-1)
else:
asteroids.append(strength[i])
stack = []
collided = False
for asteroid in asteroids:
while stack and asteroid < 0 < stack[-1]:
defending_asteroid = stack.pop()
if defending_asteroid != abs(asteroid):
asteroid = asteroid if abs(asteroid) > defending_asteroid else defending_asteroid
else:
asteroid = 0
if asteroid != 0:
stack.append(asteroid)
return stack
3 691
Oct 13 capgemini exam help available ❤️✅@placementsBro
100 percent clearance ✅✅
Book your slots as soon as possible 👍
We can't help all❌instant helps not available
3 691
For today and Tomorrow exams help available message me ✅
Contact @placementsBro✌️ for exam clearence ❤️✅
Cost vary from 1800-2500/- rupees
100 percent clearance ✌️
CAPGEMINI , JOSH technologies, Delottie , Techm , capgemini , hcl and any other👍👍book slots as soon as possible
3 691
For today and Tomorrow exams help available message me ✅
Contact @placementsBro✌️ for exam clearence ❤️✅
Cost vary from 1800-2500/- rupees
100 percent clearance ✌️
INFOSYS , JOSH technologies, Delottie , Techm , capgemini , hcl and any other👍👍book slots as soon as possible
