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.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Algorithms
  3. Graph Theory
  4. Crab Graphs
  5. Discussions

Crab Graphs

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • maucaro
    2 years ago+ 0 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?

    1|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy