◐ Shell
clean mode source ↗

Refactored the code to reduce time complexity by SwayamSahu · Pull Request #148 · AllAlgorithms/python

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Conversation

The time complexity now is O(n), which was O(nlogn) with the earlier method.