Open darwinrlo opened 4 years ago
Keep your ideas in a list. For each idea, keep a collection of positive and negative signals. Categorize each reason as strong or moderate -- don't bother to keep track of weak reasons, whether for or against.
As you run across new information or think of new considerations, add them to the list (which is really a tree) and re-rank your ideas. The ranking of your ideas will be very dynamic -- they will go up and down. And hopefully, the ideas themselves will evolve. Workflowy could be a viable UI: It provides the ability to re-order, restructure, and collapse/expand bullet points.
Ultimately, go with your gut. But the gut feeling you should go with is the gut feeling you get when this list is fairly well-developed and the entirety of it is loaded into your working memory.
Considerations
Possibilities
Problem
Source: LeetCode
Source: Geeks for Geeks
Why does sorting the intervals by first field put overlapping intervals next to each other?
If overlapping intervals were not placed next to other overlapping intervals after sorting by first, then there should be intervals in between two specific overlapping intervals that do not overlap with either overlapping interval or each other. Let's call these overlapping intervals
A
andC
,A
being the one that occurs earlier in the sort order, that is,A.start < C.start
. And let the intervals betweenA
andC
beB[0], ..., B[n]
.B[0]
does not overlap withB[n]
, soB[0].start < B[n].end
.A
does not overlap withB[0]
, soA.end < B[0].start
.B[n]
does not overlap withC
, soB[n].end < C.start
.Since
A.end < C.start
ー which would mean thatA
andC
do not overlap. So the specific instance of overlapping intervals with intervening non-overlapping intervals we're looking for does not exist. Hence, after sorting by start, overlapping intervals are placed next to each other.