CommonLounge is a community of learners who learn together. Get started with the featured resources above, ask questions and discuss related stuff with everyone.
HackerRank Week Of Code 31: Spanning Tree Fraction
Problem in short: Consider an undirected graph of N nodes, M edges. Each edge is labeled with two integers A, B. Find a spanning tree of this graph which has the maximum possible value for the following expression:
Given a tree consisting of N nodes (<= 10^5). Assign a letter ('A'-'Z') to each node. For any 2 distinct nodes having the same letter, the path between them must contain at least one node assigned a smaller letter (A being the smallest letter).
Print a valid assignment or state that it's impossible.
Organic CBD tincture is becoming more popular with a lot of people in the medical marijuana scene. This is mainly due to many people becoming aware of the medicinal properties of cannabis and its effect on our health. It is often said that cannabis can help ease depression, insomnia, chronic pain, nausea, appetite loss, stress, anxiety, muscle spasms, insomnia, and appetite enhancement. However, the effects of this cannabis are not as widely known because the government has been holding back its release.
Organic CBD tincture contains a variety of different types of botanicals. The most commonly used botanical is EGCG or epigallocatechin gallate which is a very potent antioxidant. The antioxidants found in organic CBD tincture will also help reduce inflammation of the body. You may go to GoldBee.com to search for some good products.
A lot of the benefits of CBD tincture also includes ...
Hey there! I’m Sumeet Varma. I am extremely interested in Algorithms and Data Structures and so I do a lot of competitive programming. I am also a big fan of Counter-Strike, Politics and reading random answers on Quora.
My team (FruitSalad) came 1st in ACM ICPC ‘17 Kharagpur Regionals, 2nd in Kolkata Regionals and 7th in India Finals and we have qualified for World Finals. Also, I have been Red on Codeforces and the highest rated Indian programmer on Codeforces, Hackerrank and Topcoder in the past.
Currently, I am doing an internship at Directi (Bangalore) as a part of my project for final semester at DA-IICT, Gandhinagar.
Ask me anything!
Moderator note: We are very excited to host Sumeet for a Q&A session! He has a max rating of 2515 on Codeforces and 2173 on TopCoder, and you can see the graph going up consistently over the last 2.5 years. It's time to find out more about the person behind ...
My name is Amr Mahmoud. I'm currently studying Computer and Systems Engineering at Alexandria University. I was on the team that got the first place in Egypt National CPC, also the first place in Arab Regional CPC, and qualified to last year's ICPC in Phuket. I had an internship in Microsoft R&D lab. I'm currently doing an internship in Amazon web services.