No Idea! [HackerRank] [Interview] | Python | Problem Solving

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • This video is about No Idea! problem from HackerRank.
    Problem: www.hackerrank...
    #Hackerrank #Python #Interview
    Sample Code:
    n,m=map(int,input().split())
    arr=list(map(int,input().split()))
    A=set(map(int,input().split()))
    B=set(map(int,input().split()))
    print(sum((i in A) - (i in B) for i in arr))
    For 1 : 1 Tutoring
    WhatsApp contact : 7278222619
    mail: jaiswalsatya93@gmail.com
    You can support via UPI : sattujaiswal@okhdfcbank
    Follow me on:
    Whatsapp:
    chat.whatsapp....
    Facebook:
    / sat567
    Linkedin:
    / satyendra-jaiswal-9035...
    Instagram:
    / jaiswal_satyendra

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

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

    If you enjoyed this video, make sure to checkout my other video Capitalize! problem from HackerRank - ruclips.net/video/iV2ezsexlE8/видео.html. Don't forget to like , subscribe and share with others who can learn from it. Thanks.

  • @AnilKumar-uc9lf
    @AnilKumar-uc9lf 6 месяцев назад +1

    Thank you , good concept

    • @codingcart
      @codingcart  6 месяцев назад

      Glad it helped😊. Please do share with your friends too😊

  • @soumyaranjandash3597
    @soumyaranjandash3597 3 года назад +2

    Thanks broo for a nice lecture..👍🙂

  • @dattianirudh5403
    @dattianirudh5403 2 года назад +1

    why does some programs dosen't work in pypy3??

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

    The explanation was really great but we should increase our video speed

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

    HELP!! why it s not working in opposite manner where arr be converted into set

  • @sabarivasan6685
    @sabarivasan6685 Год назад

    why should we use set in A and B and why we should not use list?

  • @RohitSharma-gj6kv
    @RohitSharma-gj6kv 3 года назад +1

    i am unable to understand last line of code

  • @divyarajsinhpadhiyar4442
    @divyarajsinhpadhiyar4442 3 года назад +2

    i am from electronics abhi 4 din se python sikh raha hu but muje to hackerrank question hi samaj nahi aa rahe
    it is normal for everyone?

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

    what do you use to draw on a macbook? I'm just curious.

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

      We are using:-
      amzn.to/2wnAE9F

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

    really helpful !!

  • @rudranshbhardwaj2547
    @rudranshbhardwaj2547 2 года назад

    Bhi thora speed combine nhi karo.. thora process m karo ki samaj aa jaya..
    App short hand bahut use karta ho..

  • @chupachuplollipop6832
    @chupachuplollipop6832 2 года назад

    Hey i just doing the same thing but my compiler shows that i exceeded the time limit.

  • @rowl97865
    @rowl97865 Год назад

    Question: what is the reason for mapping the n,m"s value?

  • @wanderer....5574
    @wanderer....5574 2 года назад

    why dont u give size of array and sets ?

  • @srishylesh2935
    @srishylesh2935 2 года назад

    how many easy level problems are there on python hackerrank

    • @codingcart
      @codingcart  2 года назад

      You can filter out from each topic..but it's not constant, they upload new problems time to time.

  • @kunjgandhi4462
    @kunjgandhi4462 2 года назад

    you can simply use issubset() function

    • @_abd4435
      @_abd4435 2 года назад

      No it's for all the elements we've to check every element here!

  • @sandeepkumartiwari8436
    @sandeepkumartiwari8436 Месяц назад

    happiness=0
    n,m=map(int,input().split())
    array=list(map(int,input().split()))
    A=set(map(int,input().split()))
    B=set(map(int,input().split()))
    for i in array:
    if i in A:
    happiness+=1
    elif i in B:
    happiness-=1
    print(happiness)