You don't have to explicitly cast int type to long, the compiler will do it for you. The other story would be if you tried to assign long value to int variable - that's the case when explicit casting would be obligatory. Nonetheless, good work! Keep practicing :)
I would go for this solution. It's very compact, readable and doesn't need any extra imports.
You don't have to explicitly cast int type to long, the compiler will do it for you. The other story would be if you tried to assign long value to int variable - that's the case when explicit casting would be obligatory. Nonetheless, good work! Keep practicing :)
p.s. using the queue is genius, i never even thought about using it, good stuff
i love it, this is a masterpiece
Lmao why am I laughing
Your Mom6969 is the CHAMPIOOOONNNNN!!!
ok
Your turn! :)