Closed shubhagarwal1 closed 3 weeks ago
@shubhagarwal1 will this be on the same page as the traversal, or will it be on a different page. If it's on a different page, I think having a separate page for each algorithm would make accessing each algorithm easier for users.
Title: Integrate an Embedded Code Editor for Practice Details: You can embed a code editor within the DFS-BFS Graph Traversal app, allowing users to write and practice algorithms like DFS, BFS, or other graph-related problems. Services like CodeMirror, Monaco Editor (used by VS Code), or Ace Editor can be embedded into your web app. Benefits: Gives users hands-on practice directly within the app and allows them to write, edit, and test code for solving graph problems.
Example Flow for Using the Code Editor: User writes code: The user writes the DFS or BFS traversal code in the embedded code editor. API Call: Upon clicking "Run", the code is sent to a service (e.g., Judge0) for execution. Results Display: The API returns the output or errors, which are displayed on the app interface. Test Cases: Optionally, the user’s code is tested against predefined graph inputs to validate the solution.