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
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Tutorials
  3. 30 Days of Code
  4. Day 4: Class vs. Instance
  5. Discussions

Day 4: Class vs. Instance

Problem
Submissions
Leaderboard
Discussions
Editorial
Tutorial

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

  • lordbell21
    6 years ago+ 28 comments

    The C# Problem is broken. It adds another newline at the end of the final test case, so it's impossible to match the expected solution.

    "Age is not valid, setting age to 0. You are young. You are young.

    You are young. You are a teenager

    You are a teenager You are old.

    You are old. You are old.

    "

    When it is saying it should be:

    "Age is not valid, setting age to 0. You are young. You are young.

    You are young. You are a teenager

    You are a teenager You are old.

    You are old. You are old. "

    I can't modify the main, so I'm stuck failing test cases.

    58|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature