import collections
import math
def getNumberOfProcess(processTime, totalTime):
Q = collections.deque(processTime)
c = 0
while Q and totalTime > 0:
if len(Q) == 1:
t = Q[0]
if totalTime >= t:
totalTime -= t
c += 1
Q.popleft()
else:
break
else:
f = Q[0]
l = Q[-1]
tf = 2 * f - 1
tl = 2 * l
ts = min(tf, tl)
if totalTime >= ts:
totalTime -= ts
c += 1
hf = math.ceil(ts / 2)
hl = math.floor(ts / 2)
if tf <= tl:
Q.popleft()
if Q:
Q[-1] -= hl
else:
Q.pop()
if Q:
Q[0] -= hf
else:
if Q[0] <= math.ceil(totalTime / 2):
c += 1
if len(Q) > 1 and Q[-1] <= math.floor(totalTime / 2):
c += 1
totalTime = 0
break
return c
๐ฅ2โค1
def reassignedPriorities(priorities):
uniq = sorted(set(priorities))
rank = {v: i + 1 for i, v in enumerate(uniq)}
return [rank[v] for v in priorities]
๐ฅ2โค1
def getLimitBreaches(timestamps, userIds, actions, m):
active = {}
breach = set()
for uid, act in zip(userIds, actions):
c = active.get(uid, 0)
if act == "login":
c += 1
if c > m:
breach.add(uid)
elif act == "logout" and c > 0:
c -= 1
active[uid] = c
return sorted(breach)
Successfully Cleared IBM- CIC - ASE โ
test accomplished โค๏ธ || plagfree coding โ
DM for any placement Help
@Mrtrueliving_ix
@Mrtrueliving_ix
๐ฏ Test Clearance Guarantee
โกI DONโT MAKE PROMISES.I DELIVER
https://t.me/Code_alphix/9105?single
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
โค1๐ฅ1
Today All placement exams Help available
DM for ๐ฏ test Clearance โค๏ธ
@Mrtrueliving_09
@Mrtrueliving_09
Revature L1 communication help done โ
Test accomplished โค๏ธ || Offcampus
DM for any placement Help
@Mrtrueliving_09
@Mrtrueliving_09
R1: https://t.me/Code_alphix/9010?single
#Revature #R2 #Communication
All placement Exams Help available...
=> Capgemini
=> Cognizant ONCAMPUS
=> Cognizant Offcampus
=> Epam
=> Comcast
=> Accenture ONCAMPUS
=> Wipro Elite
=> Hitachi
=> Infosys DSE/Sp
=> Infosys upgrade
Own laptop or computer lab ๐ฅ๏ธ
Any on // off campus placement
๐ฏ Test Clearance Guarantee โค๏ธ
Complete process available
Oa to the onboarding process
@Mrtrueliving_ix
@Mrtrueliving_ix
Check the pinned messages๐
Please open Telegram to view this post
VIEW IN TELEGRAM
โค2
Capgemini is Hiring
Role: CSG IT Enablers Contact Support Group
Eligibility: Candidates must have completed any 3-year diploma / graduation in 2025
CTC: 3LPA
Job Location - Noida
๐ Apply Link: https://app.joinsuperset.com/students/jobprofiles/3a776dbf-8e0a-48da-9bda-c26e442567be
Role: CSG IT Enablers Contact Support Group
Eligibility: Candidates must have completed any 3-year diploma / graduation in 2025
CTC: 3LPA
Job Location - Noida
๐ Apply Link: https://app.joinsuperset.com/students/jobprofiles/3a776dbf-8e0a-48da-9bda-c26e442567be
Successfully cleared Cognizant ONCAMPUS โ
Test accomplished โจ || ONCAMPUS โ
DM for any placement Help
@Mrtrueliving_ix
@Mrtrueliving_ix
#Cts #ONCAMPUS #R2
https://t.me/Code_alphix/8949
Now eligible for technical๐
Please open Telegram to view this post
VIEW IN TELEGRAM
Cognizant OFFCAMPUS - communication Help done โ
Test accomplished โค๏ธ || 4 PMโ
DM for any placement Help available
@Mrtrueliving_ix @Mrtrueliving_ix
#Cts #ONCAMPUS #R3
https://t.me/Code_alphix/9089?single
Infosys Test Mail Update ๐ฉ โ 2025 Batch
Great news! Infosys has started sending test mails for the 2025 batch ๐
Please check your registered email inbox & spam folder regularly.
๐ Location preference is also included in the mail โ make sure to fill it correctly!
DM for ๐ฏ test Clearance Guarantee โค๏ธ
https://t.me/Code_alphix/8086
https://t.me/Code_alphix/7455
https://t.me/Code_alphix/7408
https://t.me/Code_alphix/7650
Great news! Infosys has started sending test mails for the 2025 batch ๐
Please check your registered email inbox & spam folder regularly.
๐ Location preference is also included in the mail โ make sure to fill it correctly!
DM for ๐ฏ test Clearance Guarantee โค๏ธ
https://t.me/Code_alphix/8086
https://t.me/Code_alphix/7455
https://t.me/Code_alphix/7408
https://t.me/Code_alphix/7650
Successfully Help done Capgemini R2โ๏ธ
Test accomplished || ONCAMPUS
=> TECHNICAL MCQS+ CODING+ GAMING
DM FOR ANY PLACEMENT HELP
@Mrtrueliving_ix
@Mrtrueliving_ix
#Capgemini #ONCAMPUS #R2
https://t.me/Code_alphix/9035?single
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Those who have completed the CTS Offcampus test today, start your preparation.
We are expecting the test results within a week (around 3 days).
Another phase hiring starts soon
{ Phase 3}
All The best๐ โ
@Mrtrueliving_ix
We are expecting the test results within a week (around 3 days).
Another phase hiring starts soon
{ Phase 3}
All The best
Please open Telegram to view this post
VIEW IN TELEGRAM
Cognizant Slots are available
@Mrtrueliving_ix
@Mrtrueliving_ix
DM for ๐ฏ test Clearance Guarantee
@Mrtrueliving_ix
@Mrtrueliving_ix
DM for ๐ฏ test Clearance Guarantee
Cognizant phase3 slots are now accepted...
DM @Mrtrueliving_ix for ๐ฏ test Clearance Guarantee
These are ONCAMPUS cts proofs
https://t.me/Code_alphix/9041
https://t.me/Code_alphix/9052
https://t.me/Code_alphix/9119?single
ON-CAMPUS CTS candidates, the test is elimination round โ but we are still clearing to next stages successfully! ๐ฏ
๐ฎ Important Gaming Test Tip
Donโt go with unnecessary high levels โ
Overplaying can even reduce chances due to system flags โ
Be smart. Follow the right strategy.
Choose genuine mentors who build your success path...
Plagfree coding โ || ๐ฏ success Rate ๐ฅ
All the best
#Cognizant #Offcampus #HIRING_Vision
Please open Telegram to view this post
VIEW IN TELEGRAM
โค1