You are given two linked lists representing two non-negative numbers. The most significant digit comes …
分类:LeetCode
[LeetCode] Construct the Rectangle 构建矩形
For a web developer, it is very important to know how to design a web page’s size. So, given a sp…
[LeetCode] Teemo Attacking 提莫攻击
In LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned con…
[Algo] Install Dependencies 安装依赖
Install Dependencies 给定软件之间安装的依赖关系,用一个二维数组表示,第一维表示依赖的序号,第二维表示依赖关系,比如要先装deps[0][0],才能装deps[0][1]。安装时,要尽可能先安装依赖个…
[Leetcode] Maximum and Minimum Depth of Binary Tree 二叉树的最小最大深度
Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of n…
[Leetcode] Clone Graph 复制图
Clone Graph Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ…
LeetCode算法代码笔记(6-10)
给自己的目标:[LeetCode](https://leetcode.com/ "Online Judge Platform") 上每日一题 在做题的过程中记录下解题的思路或者重要的代码碎片以便后来翻阅。 项目源码:gi…
LeetCode算法题-1-bit and 2-bit Characters(Java实现)
这是悦乐书的第302次更新,第321篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第170题(顺位题号是717)。有两个特殊字符,第一个字符可以用一个比特0表示,第二个字符可以用两个比特(1…
[LeetCode] Binary Tree Level Order Traversal 二叉树层序遍历
Given a binary tree, return the level order traversal of its nodes’ values. (ie, from l…
[LeetCode] Zuma Game 祖玛游戏
Think about Zuma Game. You have a row of balls on the table, colored red(R), yellow(Y), blue(B), green(…
[LeetCode] Student Attendance Record I 学生出勤记录之一
You are given a string representing an attendance record for a student. The record only contains the fo…
[LeetCode] Range Module 范围模块
A Range Module is a module that tracks ranges of numbers. Your task is to design and implement the foll…