Solutions to the questions, I submitted in SPOJ my SPOJ ID:- spoj.com/users/chinmoy17_c/
These are the questions along with the solutions. These solutions are mostly in C/C++, and a similar solution will work in JAVA. Some of these solution are only in JAVA, and one is on PYTHON3. Please suggest a better method (than what I've used), if you know.
The Solution format is that I've first included the problem statement in comments (wherever possible), followed by the solution