Skip to content

T-winkle/LeetCodeConstructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCodeConstructor

English | 中文

When completing a LeetCode problem or after submission there are some use cases that do not pass the test and we have no way to debug the code. The purpose of this repository is to create some constructors for data structures on LeetCode to facilitate debugging using the local environment. For example LeetCode represents a binary tree as a one dimensional array, using the repository's binary tree constructor, the array can be directly converted to a binary tree. This can be used with the LeetCode plug-in for each development environment.

Usage

  • JavaScript
    // use relative path to import
    let BTree = require("javaScript/BTree");
    let root = new BTree([1,2,3,4,null,null,5]);
    
    // call the solution function of your problems to debug locally
    solution(root);

TODO

  • Binary Tree Constructor
    • C/C++
    • Java
    • JavaScript
    • Python

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published