Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompareVersion Solution Added #50

Merged
merged 2 commits into from Jan 25, 2022
Merged

Conversation

Deeeeksha
Copy link
Contributor

Hi @qiyuangong I have added CompareVersion Solution . KIndly review the changes

@qiyuangong
Copy link
Owner

qiyuangong commented Jan 13, 2022

Hi @Deeeeksha
Thank you for contribution! Nice solution indeed.
Pls change file name into 165_Compare_Version_Numbers.py, and apply code style/format with IDE's help.

@@ -0,0 +1,30 @@
class Solution:
def CompareVersion(self, version1: str, version2: str) -> int:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to compareVersion to avoid submission error

for i in range(a-b):
l2.append("0")

if b>a:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if can be change to else.

@Deeeeksha
Copy link
Contributor Author

Thankyou @qiyuangong I will make the changes as requested.

@Deeeeksha
Copy link
Contributor Author

Hello @qiyuangong. Please review the changes requested as I have updated the code.

@Deeeeksha
Copy link
Contributor Author

Hello @qiyuangong , Any updates?

Copy link
Owner

@qiyuangong qiyuangong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qiyuangong qiyuangong merged commit 76137fa into qiyuangong:master Jan 25, 2022
@Deeeeksha
Copy link
Contributor Author

Thankyou @qiyuangong .

@qiyuangong
Copy link
Owner

Thankyou @qiyuangong .

You are welcome :)

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants