j178 / leetgo

Best LeetCode friend for geek. :snowboarder:
MIT License
539 stars 32 forks source link

feat: Support local testing for Python #111

Closed frostming closed 1 year ago

frostming commented 1 year ago

This PR adds support for Python local testing

How it works

TODO

j178 commented 1 year ago

Thanks for your contribution, very impressive (as always)!

One thing left is that we need to do parameter deserialisation before calling the solution function, since there are questions whose input is list, ListNode or TreeNode.

Maybe we need to wait for the determination of #112 first.

frostming commented 1 year ago

One thing left is that we need to do parameter deserialisation before calling the solution function, since there are questions whose input is list, ListNode or TreeNode.

Yeah, it will make the code grow, may be better to extract it to a python package, as go does.