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 →

  • Georgeee
    2 years ago+ 1 comment

    can anybody explain how for this (first test in testcase #1) 50 4 4 46 44 46 10 20 16 43 21 the answer will be 7??? Obviously there is no crabs with 4 legs in this graph.

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