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.
The Time in Words
The Time in Words
Sort by
recency
|
958 Discussions
|
Please Login in order to post a comment
My python solution:
def timeInWords(h, m):
Nice — solving the same problem in five languages is a great way to compare idioms. Below I’ll give concise, actionable feedback you can apply to each implementation (correctness, edge cases, style, tests), plus language-specific tips. 11xplay Sign Up
My java solution. Not all tests pass and i don't understand why. If i test them by hand they pass, but sending solution makes them not pass (for example test 2)
class Result {
}
Not all
it seems to be an easy problem, however, work it out took me a lot of time.
There are too many details and corner case to handle.
Here is problem solution in Python, Java, C++, C and Javascript - https://programmingoneonone.com/hackerrank-the-time-in-words-problem-solution.html