Skip to content

Commit 829acc2

Browse files
committed
Template for STL heaps
1 parent 6a503af commit 829acc2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

heap/maxHeap.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
priority_queue < ll, std::vector<ll>, std::less<ll> > mxheap; // mxheap.push(), mxheap.top(), mxheap.pop()
4+
]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>max-heap</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<!-- <scope>source.cpp</scope> -->
9+
</snippet>

heap/minHeap.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
priority_queue < ll, std::vector<ll>, std::greater<ll> > mnheap; // mnheap.push(), mnheap.top(), mnheap.pop()
4+
]]></content>
5+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
6+
<tabTrigger>min-heap</tabTrigger>
7+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
8+
<!-- <scope>source.cpp</scope> -->
9+
</snippet>

0 commit comments

Comments
 (0)