new resume

This commit is contained in:
Barrett Ruth 2024-01-04 17:40:10 -06:00
parent ba5ca2ea1e
commit 6df5f716b8
7 changed files with 37 additions and 6 deletions

View file

@ -27,7 +27,8 @@
</p>
<script>
const code = document.querySelector(".trapping-rainwater");
code.textContent = `int trap(vector<int>& height) {
code.textContent = `
int trap(vector<int>& height) {
auto l = height.begin(), r = height.end() - 1;
int level = 0, water = 0;
while (l != r + 1) {
@ -36,7 +37,8 @@
water += level - lower;
}
return water;
}`;
}
`;
hljs.highlightAll();
</script>
</body>