Skip to content
Skip to documentation
Languages / Language
11 / 19

Best Practices Guide for Data Structure Visualization Tool

This tool aims to dynamically visualize the changes in common data structures within code through graphical representations, step-by-step showcasing the creation, modification, and manipulation processes of data structures. It is suitable for algorithm learning and debugging scenarios.

Due to the inherent nature of visualization, please note the following points when writing code and using this tool for visualization to ensure a better experience:

  1. Not Recommended

    • Avoid including print statements in your code. The tool automatically records variable changes during execution; therefore, print statements will have no effect on the visualization.
    • Avoid using complex custom data structures. While they might execute correctly, they often won't yield ideal visualization results.
    • Using unsupported syntax may prevent the proper display of data structure changes or cause errors. For supported syntax, see the documentation for your language.
  2. Not Supported

    • External data input is not supported. You must explicitly create data and call algorithms within your code.
    • Import and helper rules depend on the language. Java programs must explicitly import supported standard-library classes; see Java support and examples. External dependencies are not available.

Common Errors

  1. Code could not run
    • The code itself contains errors. If your code runs locally, then another issue exists.
    • Syntax not supported by this tool was used. Please refer to the language-specific support documentation for details.
  2. No execution steps
    • Your code did not execute any steps (e.g., only defined functions or classes but didn't call them).
  3. Visualization limit reached
    • This run exceeds the visualization limits. Reduce the input size and try again.