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. Subset Component
  5. Discussions

Subset Component

Problem
Submissions
Leaderboard
Discussions
Editorial

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

  • h3xandcoffee
    1 year ago+ 0 comments

    Just one question, how am I to pass the 2 seconds timeout with this test case?

    19

    829270261591207363 3534642629781970875 8835486438553553922 4342777343309553910 8175455604401287800 3684624972013468915 1760786080049229631 4840400888778785676 836979242943768955 8502555703627884802 2627478096988172148 6764945274388759937 5187768558707240969 3804635763412590238 4492711122353111668 6726262505913658382 2471102837585585212 6238091755913095632 1851570362368786292

    And by the way...

    19 829270261591207363 3534642629781970875 8835486438553553922 4342777343309553910 8175455604401287800 3684624972013468915 1760786080049229631 4840400888778785676 836979242943768955 8502555703627884802 2627478096988172148 6764945274388759937 5187768558707240969 3804635763412590238 4492711122353111668 6726262505913658382 2471102837585585212 6238091755913095632 1851570362368786292 total_components: 1160959

    Process returned 0 (0x0) execution time : 289.990 s Press any key to continue.

    (On my I7 gen6 machine) :)) And not the worst code also..

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