Understanding when to Sort and what key to use #11
harshraj22
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Most of questions where sorting is the first step, and then some other operation is done over sorted array (dp, prefix sum, etc), one needs to understand why is sorting important and what should be the key for sorting.
Relevant Leetcode problems to practice for the same:
Beta Was this translation helpful? Give feedback.
All reactions