loading...

Discussion on: Day-4 Maximum Consecutive Ones

Collapse
paddy3118 profile image
Paddy3118

Python is a multi paradigm language. A class with only one method is a code smell, try using a simpler function.

Collapse
mridubhatnagar profile image
Mridu Bhatnagar Author

This is the default code skeleton on leetcode. You can have a look at it if you want.

Collapse
paddy3118 profile image
Paddy3118

Ah, then you just need to remember that it is a code smell, it just makes maintenence worse.