new resume
This commit is contained in:
parent
ba5ca2ea1e
commit
6df5f716b8
7 changed files with 37 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue