For those who prefer writing and testing their codes on local machines before final submission (like me), sometimes it could be difficult to generate test cases when the input is linked list, binary tree, or graph. So I developed a handy python library called "lctk", short for "LeetCode Toolkit", that can generate those customized data structures from arrays or dictionaries, just like the way the LeetCode console does.
GitHub page: https://github.com/chengyutang/lctk
PS: I'm not sure if this is self-advertising, since my intention is to help people that share the same demands. But if I broke any of the Community Rules, please let me know, and I'll delete this post immediately. Thanks.