2 051
Подписчики
Нет данных24 часа
Нет данных7 дней
Нет данных30 дней
Архив постов
Hi Rafi , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
02 апр. 2021, 02:22
Geek goes to a toy shop having N toys, the prices of these toys are given as price array. He wants to buy all the N toys, but he has only M rupees to spend. He has a magical Trident which reduces the price of each toy. This reduced price for each toy is given in magical_price array. That is for ith toy (1<=i<=N) price[i] is the original price and magical_price[i] is the price after applying magic. Since applying magic reduces the power of Trident, he wants to apply it as minimum times as possible.
Find the minimum number of toys on which he should apply this magic so as to buy all the N toys for atmost M rupees. If it is not possible for Geek to buy the toys even after applying the magic on all the toys the return -1.
Example 1:
Input:
N = 5, M = 13
price = {3,4,6,2,4}
magical_price = {1,2,5,1,3}
05 июля 2023, 11:38
Hi Madireddy , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
31 мар. 2021, 03:06
Hi N Welcome to this Community. Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@offcampusjobs_0
@offcampusjobs_0
24 янв. 2022, 09:07
Hi Brishtite Subscribe Our YouTube Channel 📣 for Daily Jobs Updates and Study Material 🔥
10 авг. 2021, 00:21
Hi sahil Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@offcampusjobs_0
@offcampusjobs_0
12 янв. 2022, 22:34
