Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO
Відкрити в Telegram
Main channel https://t.me/Coding_000 Contact Admin 👉 @ILOVEU_143 for booking your exam slots Web- https://coding000.github.io/Projects/ 💯% clearance in any placement exams OffCampus -https://t.me/Offcampus_000 Discussion- https://t.me/exams_discussion
Показати більше3 365
Підписники
-124 години
-47 днів
-4530 день
Архів дописів
WILEY EDGE
Exam Help Available
Msg: @ILOVEU_143👨💻
Low Cost 💰💰
Test Clearance Guaranteed ✅
Your Job Our Responsibility 😊
Guys don`t sell my codes...😢
If u want sell pls share our channel 😊✅
Guys share the screenshot in large groups and Share with your friends ✅🔥 @Coding_000❤️👨💻
I don't see anyone sharing 🥲
AnimatedSticker.tgs0.02 KB
def max_value_cars(k, prices):
if k > len(prices):
return "Invalid input: k is greater than the number of cars in the warehouse."
if k == len(prices):
return sorted(prices)
front_prices = [0] * (len(prices) + 1)
back_prices = [0] * (len(prices) + 1)
for i in range(len(prices)):
front_prices[i+1] = front_prices[i] + prices[i]
back_prices[i+1] = back_prices[i] + prices[len(prices)-1-i]
max_value = 0
max_index = 0
for i in range(k+1):
value = front_prices[i] + back_prices[k-i]
if value > max_value:
max_value = value
max_index = i
result = []
for i in range(max_index):
result.append(prices[i])
for i in range(len(prices)-1, len(prices)-1-k, -1):
result.append(prices[i])
return sorted(result)
k = int(input("Enter the number of cars you want to sell: "))
prices = input("Enter the prices of the cars separated by spaces: ").split()
prices = [int(x) for x in prices]
print(max_value_cars(k, prices))
Medium 2 L1✅
Repost from WhiteHat Coding
palindrome code✅
python
prepsat
If u want more ans..share @whitehatcoding❤️ make 1k👨💻
def get_important_members(k, n, m, meetings):
members_info = {}
for i in range(1, k+1):
members_info[i] = []
for i in range(n):
x, y, t = meetings[i]
members_info[x].append((t, i))
members_info[y].append((t, i))
important_meetings = set()
for i in range(n):
if i not in important_meetings:
important_meetings.add(i)
x, y, t = meetings[i]
for member in members_info[x] + members_info[y]:
if member[1] != i and member[0] >= t and member[1] not in important_meetings:
important_meetings.add(member[1])
important_members = set()
for i in important_meetings:
important_members.add(meetings[i][0])
important_members.add(meetings[i][1])
return sorted(list(important_members))
k = int(input("Enter the number of members in the team: "))
n = int(input("Enter the number of meetings held: "))
m = int(input("Enter the id of the team: "))
meetings = []
for i in range(n):
x, y, t = input("Enter member X, member Y, and time of meeting separated by spaces: ").split()
x = int(x)
y = int(y)
t = int(t)
meetings.append((x, y, t))
print(get_important_members(k, n, m, meetings))
To remove Plagiarism🟥🟨🟧🟩🟦🟪
1) Use your Own template✅
2) Change Variables ✅
3) Try to read input in unique style✅
4) Understand the code and write in your style ✅
5) Write whole code in main function / write in diffrent function✅
6) Change Function name solve()=> unique✅
7) If possible change flow of the problem (if it doesn't impact the logic of code)✅
there are so many other things to avoid Plagiarism🔥🔲
@coding_000 ❤️
PrepSAT Exam Help
Wiley Edge
TCS Exam
Axis Bank.
Any other campus placement or Offcampus Exam.
Help available in All exams.
Book your slot.
Contact @ILOVEU_143
Tech mahindra exam slots available contact me fast @ILOVEU_143
PREPSAT is sending exam mails for those who Applied
Check your mails once✅
Вже доступно! Дослідження Telegram за 2025 — головні інсайти року 
