Menu

I built a free online compiler that shows your code running step by step (Java, Python, C, C++)
πŸ“°

I built a free online compiler that shows your code running step by step (Java, Python, C, C++)

DEV Community: beginnersΒ·Koppula Sai Tharun ReddyΒ·about 8 hours ago
#ftlY63vR
#devtobeginners#devto#dev#node#next
Long article (252 words) β€” no AI summary yet.
Reading 0:00
15s threshold

When my code gave the wrong output, all I could do was add more print statements. So I built WriteCode : a free online compiler that also lets you debug and see your code run step by step .

What you can do

▢️ Run code : Java, Python, C, C++, JavaScript, SQL and more

⌨️ Type input while the program runs, like a real terminal

🐞 Debug : set breakpoints and step through line by line

πŸ‘€ Visualize : arrays, linked lists, trees and recursion drawn as they change

πŸ—„οΈ Real MySQL for SQL practice

No sign-up. Works on phones too.

Try this

Paste this Java code, then press Visualize :

public class Main { static class Node { int val ; Node next ; Node ( int val ) { this . val = val ; } }

public static void main ( String [ ] args ) { Node head = new Node ( 1 ) ; head . next = new Node ( 2 ) ; head . next . next = new Node ( 3 ) ;

Node prev = null , cur = head ; while ( cur != null ) { Node next = cur . next ; cur .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.