本仓库用于记录个人在 LeetCode 平台的刷题历程,包含各类算法题目的解题代码、思路分析和学习笔记。 佛系刷题,不追求连续打卡,不打比赛,不陷入某道题的怪圈。
近期收到不少小伙伴的求助,希望知道如何在 VS Code 中调试 LeetCode 代码。通常来说,为了调试本地代码,我们需要安装相关的语言支持插件。本文中,我们就以调试 LeetCode Java 代码为例,给大家介绍本地调试 LeetCode 代码的常用套路。 准备工作 首先确保系统内 ...
Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of stones piles[i]. The objective of the game is to end ...