feat(posts): remove folds
This commit is contained in:
parent
0e6cc1de7a
commit
ed0c3b7ab2
8 changed files with 49 additions and 111 deletions
|
|
@ -157,9 +157,7 @@ private:
|
|||
size_t capacity;
|
||||
};</code></pre>
|
||||
</div>
|
||||
<div class="fold">
|
||||
<h3>optimizing the approach</h3>
|
||||
</div>
|
||||
<h3>optimizing the approach</h3>
|
||||
<div class="problem-content">
|
||||
<p>
|
||||
Rather than bear the brunt of the work finding extrema in calls to
|
||||
|
|
@ -246,9 +244,7 @@ private:
|
|||
size_t capacity;
|
||||
};</code></pre>
|
||||
</div>
|
||||
<div class="fold">
|
||||
<h3>monotonic <s>queues</s> deques</h3>
|
||||
</div>
|
||||
<h3>monotonic <s>queues</s> deques</h3>
|
||||
<div class="problem-content">
|
||||
<p>
|
||||
Thinking a bit deeper about the problem constraints, it is clear
|
||||
|
|
@ -370,7 +366,7 @@ private:
|
|||
std::deque<std::pair<double, size_t>> maxs;
|
||||
size_t capacity;
|
||||
};</code></pre>
|
||||
<div class="fold"><h3>further improvements</h3></div>
|
||||
<h3>further improvements</h3>
|
||||
<ol>
|
||||
<li>
|
||||
While the final approach is <i>theoretically</i> faster than the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue