---
title: "Haocheng Lin (@HAOCHENGLIN) | Hashnode"
description: "Full-time AI Developer 🤖 | Part-time Historian 📚. Read the latest articles by Haocheng Lin on Hashnode."
url: "https://hashnode.com/@HAOCHENGLIN"
---

@HAOCHENGLIN

# Haocheng Lin

@HAOCHENGLIN · Norwich · Joined June 2023

Full-time AI Developer 🤖 | Part-time Historian 📚

[Website](https://haochenglin.w3spaces.com/)

### [Bitwise Optimisation for Finding the Last Number](https://codeforcesarchive.hashnode.dev/bitwise-optimisation-for-finding-the-last-number?utm_source=hashnode&utm_medium=feed)

A Step-by-Step Exploration of Interactive Problem Solving through Bitwise Logic

3 min read · [codeforcesarchive.hashnode.dev](https://codeforcesarchive.hashnode.dev/bitwise-optimisation-for-finding-the-last-number?utm_source=hashnode&utm_medium=feed)

[Nov 4, 2025](https://hashnode.com/posts/bitwise-optimisation-for-finding-the-last-number/690a03153cfb2924b4f08ce5)

### [From Stacks to Sparse Tables: Reflections on Two Paths to the Same Problem](https://codeforcesarchive.hashnode.dev/from-stacks-to-sparse-tables-reflections-on-two-paths-to-the-same-problem?utm_source=hashnode&utm_medium=feed)

Two algorithms, one challenge: a stack-based heuristic and a dynamic programming approach tackle the same subarray cost problem.

1 min read · [codeforcesarchive.hashnode.dev](https://codeforcesarchive.hashnode.dev/from-stacks-to-sparse-tables-reflections-on-two-paths-to-the-same-problem?utm_source=hashnode&utm_medium=feed)

[Nov 1, 2025](https://hashnode.com/posts/from-stacks-to-sparse-tables-reflections-on-two-paths-to-the-same-problem/6906419fc8fc2a5447f35a7c)

### [Codeforces 1060 (Div 2) Problem D. Catshock](https://codeforcesarchive.hashnode.dev/codeforces-1060-div-2-problem-d-catshock?utm_source=hashnode&utm_medium=feed)

Learn how to solve the Catshock problem, a Codeforces challenge about guiding a cat through a tree without getting trapped.

5 min read · [codeforcesarchive.hashnode.dev](https://codeforcesarchive.hashnode.dev/codeforces-1060-div-2-problem-d-catshock?utm_source=hashnode&utm_medium=feed)

[Oct 24, 2025](https://hashnode.com/posts/codeforces-1060-div-2-problem-d-catshock/68fb4aa1dfa7c82b2a3098f0)

### [Reverse XOR: Cracking the Palindrome Code (Codeforces Problem)](https://codeforcesarchive.hashnode.dev/reverse-xor-cracking-the-palindrome-code-codeforces-problem?utm_source=hashnode&utm_medium=feed)

How to apply an elegant trick to solve a Bit Reversal Puzzle.

2 min read · [codeforcesarchive.hashnode.dev](https://codeforcesarchive.hashnode.dev/reverse-xor-cracking-the-palindrome-code-codeforces-problem?utm_source=hashnode&utm_medium=feed)

[Oct 15, 2025](https://hashnode.com/posts/reverse-xor-cracking-the-palindrome-code-codeforces-problem/68ef87e719fa8722e924b0b3)

### [🍬 Solving the "Candy" Problem from LeetCode: A Greedy Algorithm Approach](https://haochengcodedev.hashnode.dev/solving-the-candy-problem-from-leetcode-a-greedy-algorithm-approach?utm_source=hashnode&utm_medium=feed)

A Sweet Dive into Greedy Algorithms and Local Optimization

3 min read · [haochengcodedev.hashnode.dev](https://haochengcodedev.hashnode.dev/solving-the-candy-problem-from-leetcode-a-greedy-algorithm-approach?utm_source=hashnode&utm_medium=feed)

[Jun 2, 2025](https://hashnode.com/posts/solving-the-candy-problem-from-leetcode-a-greedy-algorithm-approach/683e13e52f1fca4706a0ade5)
