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! 💡🔒✨
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.
Thanks and what did your final code look like?🤔
@@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 :-)
@@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
@@myconovaI'm new to Python so please correct me if my thinking was wrong😅
thank you so much sir you are video are just wow and it makes my life easier
Great to hear you are enjoying and learning💐
i had written same code but in my case test case -3,4,5,6 are failed and error is terminated due to timeout.
I have the same issue..
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
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
@@DeanAmbrose-rr7kg 😁 I did the exercise and got the same mistakes with the accurate code described in the video
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 :)