Description:
The current script only syncs LeetCode solutions in C++. I propose extending the tool so it can sync solutions in multiple languages and optionally auto-select the latest accepted submission language for each problem.
why :
Many users solve LeetCode in languages other than C++, such as Python, Java, JavaScript, Go, Rust, etc.
The current tool is limited by C++-only support.
Auto-selecting the most recent accepted language makes repository sync more natural and practical for multi-language users.
proposed enhancement:
Add a --language CLI option.
Support common languages including:
cpp, python, java, c, csharp, javascript, typescript, ruby, go, swift, kotlin, rust.
Add --language auto to automatically use the latest accepted submission language per problem.
Upload files with the correct language-specific file extension.
Update documentation to describe the new option and supported languages.
Suggested behavior:
python leetcode.py --language cpp.
python leetcode.py --language python.
python leetcode.py --language auto.
Benefits:
Broadens adoption beyond C++.
Makes the tool useful for more LeetCode users.
Preserves existing functionality while enabling new language support.
Improves sync accuracy by matching the actual solved language.
I would like to implement this enhancement once the feature direction is approved.
Description:
The current script only syncs LeetCode solutions in C++. I propose extending the tool so it can sync solutions in multiple languages and optionally auto-select the latest accepted submission language for each problem.
why :
Many users solve LeetCode in languages other than C++, such as Python, Java, JavaScript, Go, Rust, etc.
The current tool is limited by C++-only support.
Auto-selecting the most recent accepted language makes repository sync more natural and practical for multi-language users.
proposed enhancement:
Add a --language CLI option.
Support common languages including:
cpp, python, java, c, csharp, javascript, typescript, ruby, go, swift, kotlin, rust.
Add --language auto to automatically use the latest accepted submission language per problem.
Upload files with the correct language-specific file extension.
Update documentation to describe the new option and supported languages.
Suggested behavior:
python leetcode.py --language cpp.
python leetcode.py --language python.
python leetcode.py --language auto.
Benefits:
Broadens adoption beyond C++.
Makes the tool useful for more LeetCode users.
Preserves existing functionality while enabling new language support.
Improves sync accuracy by matching the actual solved language.
I would like to implement this enhancement once the feature direction is approved.