Google Kick Start 2020 Round A Solution in Python Part 1|Allocation

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 27

  • @achalhingrajiya5168
    @achalhingrajiya5168 3 года назад +1

    Please make videos on other rounds too

  • @aryanagrawal3899
    @aryanagrawal3899 4 года назад

    Thankyou so much you have helped a lot! I will now refer all your videos for any doubts I have!!!!

    • @aryanagrawal3899
      @aryanagrawal3899 4 года назад

      But I could find only one kickstart video is there somewhere wrong I am searching

  • @souvikdas5007
    @souvikdas5007 3 года назад +1

    T = int(input())
    for i in range(T):
    N, B = map(int,input().split())
    A = list(map(int,input().split()))
    A.sort()

    total = count = 0

    for j in range(N):
    total += A[j]
    if total > B:
    print(f"Case #{i+1}: {count}")
    break
    count += 1
    Why this code was showing wrong answers though I checked in Test Run mode and it was giving all answers right !!!

  • @sarthakshinde5766
    @sarthakshinde5766 4 года назад +2

    Bro split explain karega and tell tips for kickstart c of 17 may how to practice

  • @smitrami5192
    @smitrami5192 4 года назад +1

    Thanks buddy for your help.

  • @lokeshwarreddy5647
    @lokeshwarreddy5647 4 года назад +2

    Bro make videos on ds and algo in python

    • @codercommune
      @codercommune  4 года назад

      Hey Lokeshwar Reddy, thanks for suggetion we will make video soon on DS and AlGO in python, meanwhile you can check our problem solving videos in python playlist. Thank you

  • @narang273
    @narang273 4 года назад

    Hello, can you help me? I keep getting the wrong answer error when I try to submit my code
    testcase = int(input())
    tc=0
    while(testcase>0):
    housenum, budget = map(int,input().split())
    hlist = list(map(int,input().split()))
    house = 0
    hlist.sort()
    for i in hlist:
    if i

    • @krish.strings
      @krish.strings 4 года назад

      you have error at ur printing statement

  • @pradhumnpandey5812
    @pradhumnpandey5812 4 года назад

    bhai runtime error aarha jbki mera code 1 second me hi3 testcase solve krrha
    pefectly output derha

  • @Manikanta-zu9tm
    @Manikanta-zu9tm 4 года назад

    Will u upload for round c also

  • @krutikpatel5477
    @krutikpatel5477 4 года назад

    Hey, thanks for sharing this video, very helpful content. I was having an issue with kickstart. so I tried running the same code but gave me the wrong answer error on kick start. Can you help me with that?

    • @codercommune
      @codercommune  4 года назад

      Share your code in comment we will solve that... Or you can change the variable name

    • @krutikpatel5477
      @krutikpatel5477 4 года назад

      @@codercommune Thanks alot for your help!, Here's link to the document with the code docs.google.com/document/d/1MrBRx8FtiUkaL-EU8s5xqgbecEk6OR1GWeQcZPKU4oQ/edit?usp=sharing

    • @krutikpatel5477
      @krutikpatel5477 4 года назад +1

      @@codercommune Here's my code, thank you
      case = int(input())
      def solution(x, B, price):
      price.sort()
      ans = 0
      a = price[x]
      while a

    • @codercommune
      @codercommune  4 года назад

      @@krutikpatel5477 is your problem solved??

    • @krutikpatel5477
      @krutikpatel5477 4 года назад

      @@codercommune No! I have made couple versions of code but it still gives me RE (runtime error) on sample.
      I have tried the test mode and it works fine gives the right output

  • @jiganeshpatil1472
    @jiganeshpatil1472 4 года назад

    Give round C

  • @Entertainment_ka_baap-tq1hg
    @Entertainment_ka_baap-tq1hg 4 года назад

    there is a run time error

    • @codercommune
      @codercommune  4 года назад +1

      Please check code carefully dude❤️

    • @aeodata7599
      @aeodata7599 4 года назад

      case = int(input())
      def solution(x, B, price):
      price.sort()
      ans = 0
      a = price[x]
      while a