Skip to content

Update 0628.py #7

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

Closed
wants to merge 2 commits into from
Closed

Update 0628.py #7

wants to merge 2 commits into from

Conversation

ankurbhambri
Copy link

image

The easiest way to solve this problem is using indexing and maximum from the front and rear indexing after sorting.

Peng-Yu Chen and others added 2 commits August 11, 2022 02:05
The easiest way to solve this problem is using indexing and intubation behind the problem
@javadev
Copy link

javadev commented Aug 15, 2022

The existed sollution is faster

image

@ankurbhambri
Copy link
Author

@javadev Leetcode calculations vary all the time but existed solution is hard to understand. You can refer to the below screenshot it seems a balanced solution.

image

@javadev
Copy link

javadev commented Aug 15, 2022

👍

@javadev
Copy link

javadev commented Aug 15, 2022

98% :)

image

@ankurbhambri
Copy link
Author

But at the same time, it's not memory efficient.

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