I need your support Guys ❤
Atleast Share with your friends & family or other groups its create someone's career
No one sharing this group 😞plz help me
For Daily Job Updates✅
Join Now 🔗 :- @Offcampus_000👨💻
Share @Coding_000❤️
Atleast Share with your friends & family or other groups its create someone's career
No one sharing this group 😞plz help me
For Daily Job Updates✅
Join Now 🔗 :- @Offcampus_000👨💻
Share @Coding_000❤️
❤2👍1🥰1
https://amazonvirtualhiring.hirepro.in/registration/incta/ju0f4/apply/?j=57594&e=13560
If you received mail instantly😊
Share @Coding_000❤️
If u want help contact @ILOVEU_143✅
If you received mail instantly😊
Share @Coding_000❤️
If u want help contact @ILOVEU_143✅
👍4
Visa Mock Interview available✅
Anyone need DM @Iloveu_143👨💻
Full visa preparation materials and mock to be taken....Daily..😊
Note - Paid 🤑🤑
Share @Coding_000❤️
Anyone need DM @Iloveu_143👨💻
Full visa preparation materials and mock to be taken....Daily..😊
Note - Paid 🤑🤑
Share @Coding_000❤️
👍4
Any one want projects -mini or Major 😊 Unique project💥💥
Domain AI/ML
contact -@ILOVEU_143 ❤️
Anyone need help in GRE and TOFEL, GMAT, DUOLINGO Exam help 👨💻👨💻
SOP , LOR✍📝
Note -paid 🤑
share✅ share ✅@Coding_000
Domain AI/ML
contact -@ILOVEU_143 ❤️
Anyone need help in GRE and TOFEL, GMAT, DUOLINGO Exam help 👨💻👨💻
SOP , LOR✍📝
Note -paid 🤑
share✅ share ✅@Coding_000
👍3
Company Name: Deloitte
Post Name: Junior Engineer/ Business Analyst
Salary: Best In Industry
Degree: B.E/B.Tech/BCA/ME/M.Tech/MCA/MBA
Batch: 2018/2019/2020/2021/2022/2023
Experience: Freshers/Experienced
Job Location: Pan India
Apply Link:
Junior Engineer:
https://usijobs.deloitte.com/careersUSI/JobDetail/USI-R-FA-EH-Junior-Chronicle-Engineer-SA/143201
Analyst:
https://usijobs.deloitte.com/careersUSI/JobDetail/USI-EH24-MF-ITS-CA-Off-Campus-Analyst/147196
Join Offcampus_000✅
Post Name: Junior Engineer/ Business Analyst
Salary: Best In Industry
Degree: B.E/B.Tech/BCA/ME/M.Tech/MCA/MBA
Batch: 2018/2019/2020/2021/2022/2023
Experience: Freshers/Experienced
Job Location: Pan India
Apply Link:
Junior Engineer:
https://usijobs.deloitte.com/careersUSI/JobDetail/USI-R-FA-EH-Junior-Chronicle-Engineer-SA/143201
Analyst:
https://usijobs.deloitte.com/careersUSI/JobDetail/USI-EH24-MF-ITS-CA-Off-Campus-Analyst/147196
Join Offcampus_000✅
👍2
How many of you are having
CODEKAZE Today
Hit Like 👍 Button
For free answers🆓
CODEKAZE Today
Hit Like 👍 Button
For free answers🆓
👍16
This media is not supported in your browser
VIEW IN TELEGRAM
Any one want projects -mini or Major 😊 Unique project💥💥
Domain AI/ML
contact -@ILOVEU_143 ❤️
Anyone need help in GRE and TOFEL, GMAT, DUOLINGO Exam help 👨💻👨💻
SOP , LOR✍📝
Note -paid 🤑
share✅ share ✅@Coding_000
Domain AI/ML
contact -@ILOVEU_143 ❤️
Anyone need help in GRE and TOFEL, GMAT, DUOLINGO Exam help 👨💻👨💻
SOP , LOR✍📝
Note -paid 🤑
share✅ share ✅@Coding_000
👍2
👍1
👍2
Any campus placement or Offcampus Exam.
Help available in All exams.
Book your slot.👨💻
Contact @IHATEU_183 ❤️
Its paid ✅
100% clearance guarantee 🔥🔥
Share @Coding_000 ❤️
Help available in All exams.
Book your slot.👨💻
Contact @IHATEU_183 ❤️
Its paid ✅
100% clearance guarantee 🔥🔥
Share @Coding_000 ❤️
👍1
👍3🌚1
Directed Soldier
int directedSoldiers(int n, vector<int> &a) {
// Write your code here.
int d=0;
vector<int> p, p1;
vector<int> b = a;
reverse(b.begin(), b.end());
int k=0;
for (int i = 0; i < n; i++) {
if (b[i]==0) {
k++;
}
p1.push_back(k);
}
for (int i = 0; i < n; i++) {
if (a[i] == 1) {
d += 1;
}
p.push_back(d);
}
reverse(p1.begin(), p1.end());
p1.push_back(0);
int res = count(a.begin(), a.end(), 0);
for (int i = 0; i < n; i++) {
int x = p[i] + p1[i + 1];
res = min(res, x);
}
return res;
}
int directedSoldiers(int n, vector<int> &a) {
// Write your code here.
int d=0;
vector<int> p, p1;
vector<int> b = a;
reverse(b.begin(), b.end());
int k=0;
for (int i = 0; i < n; i++) {
if (b[i]==0) {
k++;
}
p1.push_back(k);
}
for (int i = 0; i < n; i++) {
if (a[i] == 1) {
d += 1;
}
p.push_back(d);
}
reverse(p1.begin(), p1.end());
p1.push_back(0);
int res = count(a.begin(), a.end(), 0);
for (int i = 0; i < n; i++) {
int x = p[i] + p1[i + 1];
res = min(res, x);
}
return res;
}
👍3
int terminalDefence(int n, int m, const vector<int>& a, const vector<int>& h, const vector<int>& b, int k) {
vector<pair<int, int>> monsters;
for (int i = 0; i < m; i++) {
monsters.push_back({a[i], h[i]});
}
sort(monsters.begin(), monsters.end());
for (int i = 0; i < n; i++) {
int sentinelPos = b[i];
auto it = lower_bound(monsters.begin(), monsters.end(), make_pair(sentinelPos, 0));
if (it == monsters.end())
return 0;
int monsterPos = it->first;
int monsterHealth = it->second;
if (monsterPos == sentinelPos) {
if (monsterHealth <= k)
monsters.erase(it);
else
it->second -= k;
} else {
if (it == monsters.begin())
return 0;
it--;
monsterPos = it->first;
monsterHealth = it->second;
if (monsterHealth <= k)
monsters.erase(it);
else
it->second -= k;
}
}
return monsters.empty() ? 1 : 0;
}
vector<pair<int, int>> monsters;
for (int i = 0; i < m; i++) {
monsters.push_back({a[i], h[i]});
}
sort(monsters.begin(), monsters.end());
for (int i = 0; i < n; i++) {
int sentinelPos = b[i];
auto it = lower_bound(monsters.begin(), monsters.end(), make_pair(sentinelPos, 0));
if (it == monsters.end())
return 0;
int monsterPos = it->first;
int monsterHealth = it->second;
if (monsterPos == sentinelPos) {
if (monsterHealth <= k)
monsters.erase(it);
else
it->second -= k;
} else {
if (it == monsters.begin())
return 0;
it--;
monsterPos = it->first;
monsterHealth = it->second;
if (monsterHealth <= k)
monsters.erase(it);
else
it->second -= k;
}
}
return monsters.empty() ? 1 : 0;
}
👍2
def calculate_xor(nums):
xor_val = 0
for num in nums:
xor_val ^= num
return xor_val
def maximum_beauty(A, D, N, M):
blocks = {}
parent = list(range(N))
rank = [1] * N
beauty = []
for i in range(N):
blocks[i] = [A[i]]
def find_parent(x):
if parent[x] != x:
parent[x] = find_parent(parent[x])
return parent[x]
def merge_blocks(x, y):
px = find_parent(x)
py = find_parent(y)
if px == py:
return
if rank[px] > rank[py]:
parent[py] = px
blocks[px].extend(blocks[py])
rank[px] += rank[py]
else:
parent[px] = py
blocks[py].extend(blocks[px])
rank[py] += rank[px]
for i in range(M):
obj1 = i * 2
obj2 = i * 2 + 1
merge_blocks(obj1, obj2)
for decay_obj in D:
beauty.append(calculate_xor(blocks[find_parent(decay_obj)]))
parent_block = find_parent(decay_obj)
parent_block_objs = blocks[parent_block]
parent_block_objs.remove(A[decay_obj])
if not parent_block_objs:
del blocks[parent_block]
return beauty
N = int(input("Enter the number of objects (N): "))
M = int(input("Enter the number of object links (M): "))
print("Enter the values of the objects:")
A = [int(input()) for _ in range(N)]
K = int(input("Enter the order of object decay (K): "))
print("Enter the indices of the objects in the order of decay:")
D = [int(input()) for _ in range(K)]
result = maximum_beauty(A, D, N, M)
print("Maximum beauty of blocks before object decay:", *result)
building block
xor_val = 0
for num in nums:
xor_val ^= num
return xor_val
def maximum_beauty(A, D, N, M):
blocks = {}
parent = list(range(N))
rank = [1] * N
beauty = []
for i in range(N):
blocks[i] = [A[i]]
def find_parent(x):
if parent[x] != x:
parent[x] = find_parent(parent[x])
return parent[x]
def merge_blocks(x, y):
px = find_parent(x)
py = find_parent(y)
if px == py:
return
if rank[px] > rank[py]:
parent[py] = px
blocks[px].extend(blocks[py])
rank[px] += rank[py]
else:
parent[px] = py
blocks[py].extend(blocks[px])
rank[py] += rank[px]
for i in range(M):
obj1 = i * 2
obj2 = i * 2 + 1
merge_blocks(obj1, obj2)
for decay_obj in D:
beauty.append(calculate_xor(blocks[find_parent(decay_obj)]))
parent_block = find_parent(decay_obj)
parent_block_objs = blocks[parent_block]
parent_block_objs.remove(A[decay_obj])
if not parent_block_objs:
del blocks[parent_block]
return beauty
N = int(input("Enter the number of objects (N): "))
M = int(input("Enter the number of object links (M): "))
print("Enter the values of the objects:")
A = [int(input()) for _ in range(N)]
K = int(input("Enter the order of object decay (K): "))
print("Enter the indices of the objects in the order of decay:")
D = [int(input()) for _ in range(K)]
result = maximum_beauty(A, D, N, M)
print("Maximum beauty of blocks before object decay:", *result)
building block
👍1
This media is not supported in your browser
VIEW IN TELEGRAM