4 ms·
You ever think about making the mostly constructive version of this algorithm (rather than having the add and remove phases)? Let's say you have a page with li
by fizx 12y ago
You ever think about making the mostly constructive version of this algorithm (rather than having the add and remove phases)?
Let's say you have a page with links in headers and paragraphs. You want to select some subset of links.
Rather than having the first click on a header link isolate "a", you could have the first click isolate "h2 a". Then you could construct the set of all links by adding paragraph links via a second click. This seems easier to reason about.