We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It took me a while to get my head around this one, even with all the helpful links. I was able to implement a solution that passes all tests. Now I am wondering what the solution would look like if crabs had to have exactly N number of legs (instead of at most). Any ideas?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Crab Graphs
You are viewing a single comment's thread. Return to all comments →
It took me a while to get my head around this one, even with all the helpful links. I was able to implement a solution that passes all tests. Now I am wondering what the solution would look like if crabs had to have exactly N number of legs (instead of at most). Any ideas?