DEV Community

Discussion on: Java Daily Coding Problem #006

abbyxing profile image
Abby Xing

Wow nice solution! I've been struggling to solve this problem in java for a while and I just ended up using an int[] memory to simulate the memory. Yours is much better!

awwsmm profile image
Andrew (he/him) Author

Thanks Abby! Glad you liked it.