No Idea in python | HackerRank Programming Solutions | HackerRank Python Solutions

Hello Programmers/Coders, Today we are going to share solutions of Programming problems of HackerRank of Programming Language Python. At Each Problem with Successful submission with all Test Cases Passed, you will get an score or marks. And after solving maximum problems, you will be getting stars. This will highlight your profile to the recruiters.

In this post, you will find the solution for No Idea in python-HackerRank Problem. We are providing the correct and tested solutions of coding problems present on HackerRank. If you are not able to solve any problem, then you can take help from our Blog/website.

Use “Ctrl+F” To Find Any Questions Answer. & For Mobile User, You Just Need To Click On Three dots In Your Browser & You Will Get A “Find” Option There. Use These Option to Get Any Random Questions Answer.

Introduction To Python

Python is a widely-used, interpreted, object-oriented, and high-level programming language with dynamic semantics, used for general-purpose programming. It was created by Guido van Rossum, and first released on February 20, 1991.

Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis. It is also used to create various machine learning algorithm, and helps in Artificial Intelligence. Python is a general purpose language, meaning it can be used to create a variety of different programs and isn’t specialized for any specific problems. This versatility, along with its beginner-friendliness, has made it one of the most-used programming languages today. A survey conducted by industry analyst firm RedMonk found that it was the most popular programming language among developers in 2020.

Link for the ProblemNo Idea in python – HackerRank Solution

No Idea in python – HackerRank Solution

There is an array of  integers. There are also  disjoint sets,  and , each containing  integers. You like all the integers in set  and dislike all the integers in set . Your initial happiness is . For each  integer in the array, if , you add  to your happiness. If , you add  to your happiness. Otherwise, your happiness does not change. Output your final happiness at the end.

Note: Since  and  are sets, they have no repeated elements. However, the array might contain duplicate elements.


Input Format

The first line contains integers  and  separated by a space.
The second line contains  integers, the elements of the array.
The third and fourth lines contain  integers,  and , respectively.

Output Format

Output a single integer, your total happiness.

Sample Input

3 2
1 5 3
3 1
5 7

Sample Output



You gain  unit of happiness for elements  and  in set . You lose  unit for  in set . The element  in set  does not exist in the array so it is not included in the calculation.

Hence, the total happiness is .

No Idea in python – HackerRank Solution
# No Idea in python - Hacker Rank Solution START
io = input().split()
m = int(io[0])
n = int(io[1])

storage = list()
count = 0

storage = list(map(int, input().strip().split()))

A = set(map(int, input().strip().split()))
B = set(map(int, input().strip().split()))

for i in storage:
    if i in A:
        count = count+1
    if i in B:
        count = count-1

# No Idea in python - Hacker Rank Solution END

217 thoughts on “No Idea in python | HackerRank Programming Solutions | HackerRank Python Solutions”

  1. Thank you so much for giving everyone remarkably superb opportunity to read in detail from this web site. It’s always so cool plus stuffed with a good time for me personally and my office acquaintances to visit the blog at least three times in one week to read the newest stuff you will have. And of course, I’m so certainly fulfilled with your magnificent creative concepts served by you. Certain 4 facts on this page are undoubtedly the finest I’ve ever had.

  2. My brother suggested I may like this blog. He was once entirely right. This publish truly made my day. You can not believe simply how much time I had spent for this information! Thank you!

  3. Good day! I know this is somewhat off topic but I was wondering which blog platform are you using for this website? I’m getting sick and tired of WordPress because I’ve had problems with hackers and I’m looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

  4. Does your website have a contact page? I’m having a tough time locating it but, I’d like to shoot you an email. I’ve got some recommendations for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it expand over time.

  5. I would like to thnkx for the efforts you’ve put in writing this site. I am hoping the same high-grade site post from you in the upcoming also. Actually your creative writing skills has inspired me to get my own site now. Actually the blogging is spreading its wings rapidly. Your write up is a great example of it.

  6. Good post. I learn something tougher on different blogs everyday. It will all the time be stimulating to read content from different writers and observe just a little something from their store. I’d desire to use some with the content material on my weblog whether or not you don’t mind. Natually I’ll provide you with a hyperlink on your net blog. Thanks for sharing.

  7. fantastic put up, very informative. I wonder why the opposite experts of this sector do not understand this. You should proceed your writing. I’m confident, you have a great readers’ base already!

  8. I wanted to send a small message to be able to say thanks to you for these superb instructions you are giving at this website. My long internet investigation has now been recognized with sensible suggestions to share with my visitors. I would claim that most of us site visitors are very much fortunate to live in a really good network with many brilliant people with interesting pointers. I feel truly privileged to have discovered the webpages and look forward to really more awesome times reading here. Thanks a lot once more for all the details.

  9. Excellent beat ! I would like to apprentice while you amend your website, how can i subscribe for a blog website? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear concept

  10. I have read a few good stuff here. Definitely price bookmarking for revisiting. I wonder how much attempt you put to make this kind of fantastic informative web site.

  11. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info particularly the last part 🙂 I care for such information much. I was looking for this certain information for a long time. Thank you and best of luck.

  12. What i don’t realize is in reality how you are no longer actually much more neatly-favored than you may be now. You’re so intelligent. You already know therefore considerably when it comes to this topic, produced me individually imagine it from so many varied angles. Its like men and women are not interested except it is one thing to do with Woman gaga! Your individual stuffs nice. All the time maintain it up!

  13. Hello, Neat post. There is an issue together with your site in web explorer, may test this… IE still is the marketplace leader and a huge element of other folks will omit your great writing because of this problem.

  14. We’re a group of volunteers and starting a new scheme in our community. Your web site provided us with valuable info to work on. You’ve done a formidable job and our whole community will be thankful to you.

  15. I have been exploring for a little bit for any high-quality articles or blog posts on this sort of space . Exploring in Yahoo I at last stumbled upon this site. Studying this info So i am happy to show that I’ve an incredibly good uncanny feeling I discovered exactly what I needed. I so much for sure will make sure to do not omit this web site and give it a look on a continuing basis.

  16. Pretty section of content. I just stumbled upon your blog and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your feeds and even I achievement you access consistently fast.

  17. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something informative to read?

  18. Definitely imagine that which you said. Your favourite justification seemed to be
    on the internet the easiest thing to take note of.
    I say to you, I certainly get irked even as folks
    think about issues that they plainly do not recognize about.
    You managed to hit the nail upon the top and also defined out the whole thing with no need side effect , people can take a signal.
    Will likely be again to get more. Thank you

  19. Con nuestra Calculadora Petro puedes conocer fácilmente el valor oficial de este criptoactivo en cualquier moneda o criptomoneda que deses: Bolívares, Dolares, Euros, Libras, Pesos Colombianos, Bitcoin, Ethereum, etc… Actualizamos cada cinco minutos directamente desde el sitio web oficial de la plataforma Petro. HTML: Siemens AG se convirtió en el precursor al realizar la primera transferencia denominada en euros utilizando JPM Coin. Aunque no se reveló el monto exacto de la transacción, este acontecimiento demuestra el creciente interés y confianza en la tecnología blockchain para facilitar pagos internacionales seguros y eficientes. Para determinar la conversión de btc a euro hay que tener en cuenta el funcionamiento de la criptodivisa. A fecha de redacción de artículo, el coste de 1 btc estaría alrededor de los 10.000€.
    Otros mercados Como Bitcoin está descentralizado, no está sujeto a la inflación ni a ninguna política monetaria que haya creado ningún gobierno o banco central. En cambio, solo habrá 21 millones de BTC en existencia. Conseguir bitcoins Bitcoin, ether, litecoin y más. Podrás operar en el índice Crypto 10 para obtener una mayor exposición Se puede comerciar con tokens BTC en intercambios de cripto centralizados. El intercambio más popular para comprar y comerciar con Bitcoin es Coinbase Exchange, donde el par de comercio más activo, BTC USD, registra un volumen de comercio de $400.091.488,69 en las últimas 24 horas. Entre otras opciones populares se incluye Kraken y Tidex. El precio de Bitcoin se define por la oferta y la demanda Bolsamania | 20 jul, 2023 Any client with a notional size above this limit is at risk of having their cryptocurrency positions reduced.

  20. Collect Cashman Casino slots, roulette, and blackjack free coins now. Collect free Cashman Casino coins easily without having to hunt around for every freebie! Mobile for Android and iOS. Play on Facebook! This game is becoming very popular day by day. If you want to play online games then Cashman casino game can be your best option and when you download Cashman casino game. Cashman casino Android Mobile is available on the Google Play Store and Apple Store. High FPS Experience immersive gaming at every step in Cashman Casino Las Vegas Slots with BlueStacks. Customize in-game FPS for an incredibly seamless gaming performance. Exciting casino game for Seminole Casino players Cashman Casino Slots Free Coins: HollywoodCasino has all your favorite free slots online including 88 Fortunes, Lady Robin Hood, and Super Jackpot party, along with special promotions each month!
    No other slot is as much fun to play as the Tomb Raider slot game, so why not give it some play time for free from our website and make use of our real money bonus too. The first in the series, titled simply Lara Croft: Tomb Raider, blew away iGaming audiences in 2004. An instant success back then, it still attracts players to this day—many of which appreciate the old-school graphics because they are more akin to the earlier years of the Lara Croft video gaming experience. Please select all the ways you would like to hear from Aboutslots: The betting range in Tomb Raider is quite limiting and best for mid-limit bettors. The minimum bet on all 15 lines is 7.50, while the highest bet possible is 37.50 when all 5 coins are applied to all lines. All wins are multiplied by credits staked per line apart from scatters.


Leave a Comment

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker🙏.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock