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.
Hi! I'm new to coding and attempted this practice problem but am only able to attain a score of 15 out of the possible 30. I am confused as to how I am supposed to pass both test cases.
Its asking me to print out
Hello, World.
Welcome to 30 Days of Code!
Which I have done so, however when I hit submit theres a second case it tests my code against that it always fails to meet. I clicked "View answer" and in the second case it asks me to write out
Hello, World.
Hacker Rank is the best!
So I added that in and it then proceeded to fail the first case. Ive tried submitting each one individually, together, in a single line of code, in two lines of code all either fail or give me only 15 out of the 30 possible points.
I know this may not be an important test or practice problem, however I wish to understand how to fully figure out what a problem is asking me to do. No where in the problem is it listed to write in the other line of code but in the submission it is a test case.
Thank you very much to anyone who takes their time to respond and help me understand this website/problem.
P.S.
All my answers were done in Java
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 0: Hello, World.
You are viewing a single comment's thread. Return to all comments →
Hi! I'm new to coding and attempted this practice problem but am only able to attain a score of 15 out of the possible 30. I am confused as to how I am supposed to pass both test cases.
Its asking me to print out
Hello, World. Welcome to 30 Days of Code!
Which I have done so, however when I hit submit theres a second case it tests my code against that it always fails to meet. I clicked "View answer" and in the second case it asks me to write out
Hello, World. Hacker Rank is the best!
So I added that in and it then proceeded to fail the first case. Ive tried submitting each one individually, together, in a single line of code, in two lines of code all either fail or give me only 15 out of the 30 possible points.
I know this may not be an important test or practice problem, however I wish to understand how to fully figure out what a problem is asking me to do. No where in the problem is it listed to write in the other line of code but in the submission it is a test case.
Thank you very much to anyone who takes their time to respond and help me understand this website/problem.
P.S. All my answers were done in Java