Skip to content

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.

2 participants