new resume
This commit is contained in:
parent
ba5ca2ea1e
commit
6df5f716b8
7 changed files with 37 additions and 6 deletions
28
problems/dynamic-programming.html
Normal file
28
problems/dynamic-programming.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>
|
||||
<link rel="stylesheet" href="gruvbox-light.css" />
|
||||
<link rel="stylesheet" href="../index.css" />
|
||||
<title>Dynamic Programming</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Dynamic Programming</h1>
|
||||
<p>Trapping Raintwaters Leetcode Problem Description</p>
|
||||
<pre><code class="trapping-rainwater"></code></pre>
|
||||
<h2>Problem Statement</h2>
|
||||
<p>hi</p>
|
||||
<script>
|
||||
const code = document.querySelector(".trapping-rainwater");
|
||||
code.textContent = `
|
||||
int trap(vector<int>& height) {
|
||||
some code
|
||||
}
|
||||
`;
|
||||
hljs.highlightAll();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
16
problems/index.html
Normal file
16
problems/index.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" href="../index.css" />
|
||||
<title>Interview Problems — Data Structures and Algorithms</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Problems</h1>
|
||||
<p>Description</p>
|
||||
<a href="rainwater.html"><h2>Trapping Rainwater</h2></a>
|
||||
<a href="dynamic-programming.html"><h2>Dynamic Programming</h2></a>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -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