Daily Coding Problem is a website which will send you a programming challenge to your inbox every day. I want to show beginners how to solve some o...
For further actions, you may consider blocking this person and/or reporting abuse
Java 8:
Fails for elements with a 0, obviously, could be worked around with filtering.
Hey @andrew
Awesome job.
I recently started doing these problems(in Python) and sharing solutions on a public github repo.
But after only 2, I got really busy.
Looking at your posts gave me motivation, I will try to get going with them again.
Thanks man.
"I find myself really wanting pointers in Java right now."
What is it you wish to accomplish with pointers that you can't do in Java here?
Isn't the index as good as a pointer for this?