NiuNiu MaTe
Author

NiuNiu MaTe

Joined Tencent (nicknamed "Goose Factory") through campus recruitment at a second‑tier university. Career path: Tencent → foreign firm → ByteDance → Tencent. Started as an interviewer at the foreign firm and hopes to help others.

97
Articles
0
Likes
79
Views
0
Comments
Recent Articles

Latest from NiuNiu MaTe

97 recent articles
NiuNiu MaTe
NiuNiu MaTe
Jul 27, 2021 · Fundamentals

Three Clever Ways to Solve the Circular Gas Station Problem

This article explains the classic circular gas‑station challenge, presents its key constraints, walks through a concrete example, and compares three solution strategies—brute‑force, reverse (backtrack) greedy, and a cumulative‑sum graphical method—highlighting their trade‑offs and insights.

algorithmbrute forcecoding interview
0 likes · 7 min read
Three Clever Ways to Solve the Circular Gas Station Problem
NiuNiu MaTe
NiuNiu MaTe
Jun 25, 2021 · Fundamentals

How to Identify a Poisoned Bottle with Minimal Rabbits Using Binary Logic

This article explores a classic puzzle where one must locate a single poisonous bottle among 1000 using rabbits as testers, comparing time‑focused, space‑focused, and balanced strategies before revealing an optimal binary‑encoding solution that finds the poison in one day with just ten rabbits.

BinaryOptimizationalgorithm
0 likes · 5 min read
How to Identify a Poisoned Bottle with Minimal Rabbits Using Binary Logic
NiuNiu MaTe
NiuNiu MaTe
May 28, 2021 · Fundamentals

How to Win the Apple‑Picking Game: Recursive and DP Strategies Explained

This article walks through the classic “pick‑from‑both‑ends” apple game, analyzing why greedy choices fail, and presents recursive, memoized, and dynamic‑programming solutions in Go, complete with code examples and step‑by‑step explanations to help you determine the winning strategy.

Game Theoryalgorithmdynamic programming
0 likes · 8 min read
How to Win the Apple‑Picking Game: Recursive and DP Strategies Explained
NiuNiu MaTe
NiuNiu MaTe
May 18, 2021 · Backend Development

How a Non‑Top‑University Graduate Cracked Tencent: A Step‑by‑Step Backend Engineer Roadmap

This guide shares a former second‑tier university graduate's practical roadmap—covering mindset, goal setting, skill acquisition in C++, data structures, algorithms, OS, networking, databases, internships, project work, interview tactics, and Tencent's recruitment process—to help aspiring engineers land offers at top tech firms.

Tencentcareerskill development
0 likes · 19 min read
How a Non‑Top‑University Graduate Cracked Tencent: A Step‑by‑Step Backend Engineer Roadmap
NiuNiu MaTe
NiuNiu MaTe
May 11, 2021 · Fundamentals

Can a Frog Jump Across All Platforms? Jump Game Solutions with DFS, DP, Greedy

Given an array where each element indicates the maximum jump length from that position, this article explores multiple strategies—depth‑first search, dynamic programming, greedy, and reverse‑tracking—to determine whether the frog can reach the last board, comparing their efficiency and implementation details.

DFSalgorithmdynamic programming
0 likes · 7 min read
Can a Frog Jump Across All Platforms? Jump Game Solutions with DFS, DP, Greedy
NiuNiu MaTe
NiuNiu MaTe
May 2, 2021 · Fundamentals

How to Master Python Quickly: A Complete Learning Roadmap for 2024

This guide explains why Python is essential, presents a step‑by‑step learning roadmap covering beginner basics, backend web development, web crawling, data analysis, and machine learning, and provides curated resources and project links to help learners progress efficiently.

Data Analysisbackend developmentlearning roadmap
0 likes · 8 min read
How to Master Python Quickly: A Complete Learning Roadmap for 2024
NiuNiu MaTe
NiuNiu MaTe
Apr 14, 2021 · Databases

Why MySQL OFFSET Is So Slow and How to Fix It

This article examines why MySQL pagination with large OFFSET values becomes painfully slow, explains the underlying B+‑tree index mechanics, and presents two practical solutions—keyset pagination and index‑covering subqueries—to dramatically improve query performance.

B+TreeKeyset PaginationMySQL
0 likes · 8 min read
Why MySQL OFFSET Is So Slow and How to Fix It