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. Data Structures
  3. Trees
  4. Kitty's Calculations on a Tree
  5. Discussions

Kitty's Calculations on a Tree

Problem
Submissions
Leaderboard
Discussions
Editorial

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

  • JimB6800
    7 years ago+ 3 comments

    At the time of this note, none of the Java solutions (leaderboard) has achieved > 19.2 score. My code is passing tests 0-6, and timing out on the rest. I'm using a variation on Tarjan's Offline LCA algorithm, which I think should be reasonably optimal. Are timings too tight for Java? It looks like most of the successful solutions are in c/c++.

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