40. No Idea!: Hackerrank | Python Solution Explained

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • 🚀 Elevate Your Coding Skills with CodeSignal Challenges! 🚀
    #CodeSignal #hackerrank #hackerranksolutions
    Embark on a coding journey like never before with our exclusive RUclips playlist featuring the exhilarating challenges from CodeSignal! 🌐✨
    👨‍💻 Whether you're gearing up for a CodeSignal assessment or simply eager to enhance your coding prowess, this playlist is your ultimate guide. Join us as we decode, troubleshoot, and conquer a myriad of challenges designed by developers, for developers.
    🚀 What to Expect:
    - *In-depth Analysis:* Dive deep into each challenge as we unravel the intricacies and explore optimal solutions.
    - *Pro Tips:* Unearth valuable insights and expert tips to streamline your coding approach and boost efficiency.
    - *Interactive Learning:* Engage with the coding community in the comments, sharing thoughts, solutions, and learning from one another.
    🌟 Why CodeSignal?
    CodeSignal isn't just an assessment platform; it's a vibrant ecosystem where developers thrive. Whether you're preparing for a CodeSignal assessment or simply aiming to sharpen your coding skills, our playlist has something for everyone.
    🚨 Don't Miss Out! Subscribe now and turn on notifications to stay updated with each thrilling episode. Let's code, learn, and conquer together! 💻🚀
    #CodeSignal #CodingChallenges #ProgrammingJourney #DeveloperLife #CodeMastery #LearnToCode #CodingCommunity #TechSkills #AlgorithmMasters #RUclipsCoding #CodeSignalPlaylist
    Are you ready to crack the code? Join us on this epic coding adventure! 💡🔒✨

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

  • @myconova
    @myconova 3 месяца назад +1

    Thank you so much! You're videos are helping me a ton! fyi - inputting set_a and set_b as lists has them timeout in the solution check, but inputting them as sets solves that.

    • @AmirCharkhi
      @AmirCharkhi  2 месяца назад

      Thanks and what did your final code look like?🤔

    • @myconova
      @myconova 2 месяца назад +1

      @@AmirCharkhi
      n, m = list(map(int, input().split()))
      my_array = list(map(int, input().split()))
      set_a = set(map(int, input().split()))
      set_b = set(map(int, input().split()))
      everything else is the same. thank you again! I really appreciate all the effort and explanations in your python videos :-)

    • @rahulr7287
      @rahulr7287 2 месяца назад

      ​@@myconovaBut didn't this make the code wrong as set removes the duplicates. So if there are two 3s in set_a it shows only one and the happiness will only increase by one

    • @rahulr7287
      @rahulr7287 2 месяца назад

      ​@@myconovaI'm new to Python so please correct me if my thinking was wrong😅

  • @Priyadarshene
    @Priyadarshene 2 месяца назад +2

    thank you so much sir you are video are just wow and it makes my life easier

    • @AmirCharkhi
      @AmirCharkhi  2 месяца назад

      Great to hear you are enjoying and learning💐

  • @web_d148
    @web_d148 6 месяцев назад +1

    i had written same code but in my case test case -3,4,5,6 are failed and error is terminated due to timeout.

    • @francois-xaviermenage4531
      @francois-xaviermenage4531 6 месяцев назад

      I have the same issue..

    • @DeanAmbrose-rr7kg
      @DeanAmbrose-rr7kg 5 месяцев назад

      this guy dont know how to program he has copied the code from chatgpt ,the chatgpt gives the same code with same variable name ..and he also passes the varaible in list which is wrong it should be passes in set as list contains the duplicate values and can give us wrong output if there are duplicates value​@@francois-xaviermenage4531

    • @DeanAmbrose-rr7kg
      @DeanAmbrose-rr7kg 5 месяцев назад

      this guy dont know how to program he has copied the code from chatgpt ,the chatgpt gives the same code with same variable name ..and he also passes the varaible in list which is wrong it should be passes in set as list contains the duplicate values and can give us wrong output if there are duplicates value
      And didn't run all test cases

    • @francois-xaviermenage4531
      @francois-xaviermenage4531 5 месяцев назад

      @@DeanAmbrose-rr7kg 😁 I did the exercise and got the same mistakes with the accurate code described in the video

    • @AmirCharkhi
      @AmirCharkhi  2 месяца назад

      HackerRank is a platform that evolves over time and the requirements of the question change over time. The solutions are sometimes operational at the time of recording and if the backend changes, they change :)