DEV Community

Discussion on: Java Daily Coding Problem #006

Collapse
 
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!

Collapse
 
awwsmm profile image
Andrew (he/him)

Thanks Abby! Glad you liked it.