import math
def closestColor(pixels):
pure_colors = {
"Black": (0, 0, 0),
"White": (255, 255, 255),
"Red": (255, 0, 0),
"Green": (0, 255, 0),
"Blue": (0, 0, 255)
}
def distance(c1, c2):
return sum((a - b) ** 2 for a, b in zip(c1, c2))
results = []
for pixel in pixels:
rgb = (int(pixel[i:i+8], 2) for i in (0, 8, 16))
closest = min(pure_colors.items(), key=lambda x: distance(rgb, x[1]))
min_dist = distance(rgb, closest[1])
ties = [name for name, color in pure_colors.items() if distance(rgb, color) == min_dist]
results.append("Ambiguous" if len(ties) > 1 else ties[0])
return results
Closestcolor// LinkedIn π
Forwarded from COGNIZANT EXAM HELP GROUP
All Exams Help available
πΉ Deloitte
πΉ Wiley edge
πΉ IBM CIC
πΉ IBM
πΉ Tech Mahindra
πΉ Cognizant
πΉ Capgemini
πΉ Accenture
πΉ Iopex
πΉ Revature
πΉ Amazon all roles
πΉ Flipkart
Any Other OA
DM @Mrtrueliving_ixπ» π
Test ClearanceπΊ with High success rate πΈ
Any Other OA
DM @Mrtrueliving_ix
Test Clearance
Please open Telegram to view this post
VIEW IN TELEGRAM
Turing || Python developer
Help done π
All placement Help available
DM @Mrtrueliving_ix π
#Turing #Python #developer
Help done π
All placement Help available
DM @Mrtrueliving_ix π
#Turing #Python #developer
Successfully cleared Deloitte NLA
Test accomplished βΊοΈ
All placement help available
DM π― test Clearance π
@Mrtrueliving_ix
@Mrtrueliving_ix
Preview
https://t.me/code_alphix/4781?single
Test accomplished βΊοΈ
All placement help available
DM π― test Clearance π
@Mrtrueliving_ix
@Mrtrueliving_ix
Preview
https://t.me/code_alphix/4781?single
Turning || Python+ js developer π
Test accomplished
All OA Help available
DM @Mrtrueliving_ix π
π― Test Clearance β€οΈ
#Turing #py+js #Developer
Test accomplished
All OA Help available
DM @Mrtrueliving_ix π
π― Test Clearance β€οΈ
#Turing #py+js #Developer
Infosys
Role : React web developer
Test accomplished π
DM @Mrtrueliving_ix π€
#Infosys #Rwd #Helpdone
Role : React web developer
Test accomplished π
DM @Mrtrueliving_ix π€
#Infosys #Rwd #Helpdone
ACCENTURE HIRING IS BACK βοΈπ
Batch upto 2024πβ
Accenture Sending Exam Shortlisting Mails β
Role : Packaged App Development Associate (PADA)
βͺοΈ Qualification: B.E/B.Tech/M.E/M.Tech, MCA, and M.Sc
βͺοΈ Batch : 2021/2022/2023 & 2024
ππ Apply Link For (PADA) ππ
https://indiacampus.accenture.com/myzone/accenture/1/jobs/25377/job-details
βββββββββββββ
Role: System and Application Services Associate (SASA)
βͺοΈ Qualification: B.Sc., BCA, BBA, B.A, B.Com
βͺοΈ Batch : 2021/2022/2023 & 2024
ππ Apply Link For (SASA) ππ
https://indiacampus.accenture.com/myzone/accenture/1/jobs/129361/job-details
MUST Apply β
Batch upto 2024πβ
Accenture Sending Exam Shortlisting Mails β
Role : Packaged App Development Associate (PADA)
βͺοΈ Qualification: B.E/B.Tech/M.E/M.Tech, MCA, and M.Sc
βͺοΈ Batch : 2021/2022/2023 & 2024
ππ Apply Link For (PADA) ππ
https://indiacampus.accenture.com/myzone/accenture/1/jobs/25377/job-details
βββββββββββββ
Role: System and Application Services Associate (SASA)
βͺοΈ Qualification: B.Sc., BCA, BBA, B.A, B.Com
βͺοΈ Batch : 2021/2022/2023 & 2024
ππ Apply Link For (SASA) ππ
https://indiacampus.accenture.com/myzone/accenture/1/jobs/129361/job-details
MUST Apply β
All on-campus and off-campus exam help is available.
^ IBM - CIC
^ Revature
^ AMAZON
^ COGNIZANT (Aptitude & Coding)
^ Wipro Elite ON Campus
^ Odoo
DM for help
@MRTRUELIVING_IX
@MRTRUELIVING_IX
def findMostPopularTopic(postDetails):
topics = set()
topic_scores = {}
for line in postDetails:
parts = [part.strip() for part in line.split(',')]
if len(parts) != 5:
print("Invalid input")
return
try:
likes = int(parts[2])
comments = int(parts[3])
shares = int(parts[4])
except ValueError:
print("Invalid input")
return
if likes < 0 or comments < 0 or shares < 0:
print("Invalid input")
return
topic = parts[1]
topics.add(topic)
engagement = likes + comments * 2 + shares * 5
if topic in topic_scores:
topic_scores[topic] += engagement
else:
topic_scores[topic] = engagement
if len(topics) < 2:
print("Invalid input")
return
max_score = -1
max_topic = ''
for topic, score in topic_scores.items():
if score > max_score:
max_score = score
max_topic = topic
print(max_topic)
π₯2
Ibm
Role : ASE
https://ibmglobal.avature.net/en_US/careers/JobDetail?jobId=7789&source=WEB_Search_NA
Batch 2024
Role : ASE
https://ibmglobal.avature.net/en_US/careers/JobDetail?jobId=7789&source=WEB_Search_NA
Batch 2024
Last phase Hiring