diff --git a/posts/algorithms/competitive-programming-log.html b/posts/algorithms/competitive-programming-log.html index cfad7a5..038e25f 100644 --- a/posts/algorithms/competitive-programming-log.html +++ b/posts/algorithms/competitive-programming-log.html @@ -27,7 +27,10 @@

1017 (div. 4)—14/4/2025 + > + + +

Decent contest. Lost focus near the end and was not paying attention @@ -68,7 +71,10 @@

799 (div. 4)—10/4/2025 + > +

Improvement is marginal. My desire for rating is unquenchable @@ -166,7 +172,10 @@

849 (div. 4)—9/4/2025 + > +

Defeating. My speed is improving but I completely wasted my focus. @@ -221,7 +230,10 @@

1016 (div. 3)—8/4/2025 + > +

Horrendous competition but I refrain from cringing for the sake of @@ -292,7 +304,10 @@

898 (div. 4)—3/4/2025 + > +

Placed top 2000 but did not learn much. Was distracted (thinking @@ -345,7 +360,10 @@

871 (div. 4)—28/3/2025 + > +

Div. 4 to practice implemenation skills + mathematical observations @@ -434,7 +452,10 @@

895 (div. 3)—26/3/2025 + > +

Decent.

@@ -503,7 +524,10 @@

1013 (div. 3)—25/3/2025 + > +

@@ -552,7 +576,10 @@

900 (div. 3)—22/3/2025 + > +

@@ -606,7 +633,10 @@

891 (div. 3)—{6,7}/5/2025 + > +

@@ -685,7 +715,11 @@

-

cses (range queries, sorting and searching)—1/3/2025

+

cses (range queries, sorting and searching) + +

A good review and challenge of data strucures. I've become even @@ -750,8 +784,11 @@

1006 (div. 3)—25/2/20251006 (div. 3) +

    @@ -796,7 +833,11 @@
-

sorting and searching—24/2/2025

+

sorting and searching + +

A lot of these problems I'd seen before but this is good practice anyway. This really is a great problem set. After being @@ -856,7 +897,11 @@

-

more cses—22/2/2025

+

more cses + +

  1. @@ -886,7 +931,11 @@
-

cses—21/2/2025

+

cses + +

Everyone recommends CSES so I started with it, doing the first 8 @@ -972,7 +1021,10 @@

938 (div. 3)—15/2/2025 + > +

@@ -1105,7 +1157,11 @@

-

the beginning—12/2/2025

+

the beginning + +

This marks the (true) beginning of my competitive programming diff --git a/posts/algorithms/leetcode-daily.html b/posts/algorithms/leetcode-daily.html index c62bf3d..b18288f 100644 --- a/posts/algorithms/leetcode-daily.html +++ b/posts/algorithms/leetcode-daily.html @@ -30,7 +30,9 @@ href="https://leetcode.com/problems/count-good-numbers/submissions/1605647445/?envType=daily-question&envId=2025-04-13" >count good numbers - — 13/4/24 +

understanding the problem

@@ -69,7 +71,9 @@ href="https://leetcode.com/problems/minimum-number-of-operations-to-make-elements-in-array-distinc" >minimum number of operations to make array distinct - — 9/4/24 +

understanding the problem

@@ -104,7 +108,9 @@ href="https://leetcode.com/problems/count-the-number-of-fair-pairs/" >count the number of fair pairs - — 9/13/24 +

problem statement

@@ -273,7 +279,9 @@ href="https://leetcode.com/problems/most-beautiful-item-for-each-query/description/" >most beautiful item for each query - — 9/12/24 +

problem statement

@@ -381,7 +389,9 @@ href="https://leetcode.com/problems/shortest-subarray-with-or-at-least-k-ii/description/" >shortest subarray with or at least k ii - — 9/11/24 +

problem statement

@@ -509,7 +519,9 @@ href="https://leetcode.com/problems/minimum-array-end/" >minimum array end - — 9/10/24 +

problem statement

diff --git a/posts/algorithms/practice-makes-perfect.html b/posts/algorithms/practice-makes-perfect.html index 708a85b..52998ce 100644 --- a/posts/algorithms/practice-makes-perfect.html +++ b/posts/algorithms/practice-makes-perfect.html @@ -23,7 +23,7 @@

practice makes perfect

diff --git a/posts/software/competitive-programming-setup.html b/posts/software/competitive-programming-setup.html new file mode 100644 index 0000000..5e0744a --- /dev/null +++ b/posts/software/competitive-programming-setup.html @@ -0,0 +1,95 @@ + + + + + + + + + + competitive programming setup + + + +
+
+
+

competitive programming setup

+ +
+
+

HTML, JavaScript, and CSS

+

That's all there is to it.

+

I thought about using the following frameworks:

+
    +
  1. React.js
  2. +
  3. Next.js
  4. +
  5. Hugo
  6. +
  7. Astro
  8. +
+

+ But I did not actually need any of them to make this site + look decent. +

+

What I've Learned

+

+ Of course, most people build simple websites like these to learn a + new technology or framework, not to use an optimal tool. That's + actually why I + hosted this website on AWS. +

+

+ Building this website with truly bare-bones technologies has made me + appreciate why these web frameworks have emerged. +

+
    +
  • + Writing JavaScript to manipulate the DOM works just fine but lacks + the readability and composability that many JavaScript frameworks + bring to the table. +
  • +
  • + Re-using code is odd. For example, I created a + "common.js" with general utilities—there is zero + indication (both to me and my language servers) that these + functions are exposed to other scripts included by the same HTML + file. +
  • +
  • + JSX is great. Dynamically inserting HTML as raw strings or writing + them line by line with the DOM is a pain, and a verbose one at + that. +
  • +
  • + Similarly, CSS styling (inline/stylesheet) works at the small + scale. However, with styles being completely divorced from the + HTML itself, much is left to be desired. +
  • +
  • + Reusing HTML, styles, and JavaScript feels extremely fragile. + Innovative type-safe, optimized, and composable solutions + definitely have their place in the web. +
  • +
  • + You can be efficient with HTML, JS, and CSS. My iteration + speed on on this site versus other React.js/MDX blogs I have + worked on is the same if not faster. While this may be a testament + to my lack of JavaScript experience, I think people conclude too + early that their task is beyond the technologies that form the + foundation of the web today. +
  • +
+
+
+
+ + + + + diff --git a/posts/software/designing-this-website.html b/posts/software/designing-this-website.html index 23415ab..fdfdb9c 100644 --- a/posts/software/designing-this-website.html +++ b/posts/software/designing-this-website.html @@ -16,7 +16,7 @@

designing this website

diff --git a/public/code/algorithms/extrema-circular-buffer/ringbuffer.cpp b/public/code/algorithms/extrema-circular-buffer/ringbuffer.cpp deleted file mode 100644 index e69de29..0000000 diff --git a/styles/post.css b/styles/post.css index c8d6571..1d75ad9 100644 --- a/styles/post.css +++ b/styles/post.css @@ -36,11 +36,16 @@ li { } .post-meta { - /* space between date and title */ margin-left: 100px; font-size: 1.3em; } +h2 .post-meta { + float: right; + margin-left: 20px; + font-size: 1em; +} + .post-title { font-weight: normal; font-size: 2.2em;