标签归档:leetcode

RSS feed of leetcode

[LeetCode]Student Attendance Record I

题目描述:

LeetCode 551. Student Attendance Record I

You are given a string representing an attendance record for a student. The record only contains the following three characters:

  1. 'A' : Absent.
  2. 'L' : Late.
  3. 'P' : Present.

A student could be rewarded if his ...

继续阅读

LeetCode Weekly Contest 27解题报告

LeetCode Weekly Contest 27是LeetCode举办的第三十二场正式周赛,共4道题目,比赛时长1.5小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-27/

题解列表:

LeetCode 557. Reverse Words in a String III

LeetCode 554. Brick Wall

LeetCode 556. Next Greater Element III

LeetCode 549. Binary Tree Longest Consecutive Sequence II

[LeetCode]Binary Tree Longest Consecutive Sequence II

题目描述:

LeetCode 549. Binary Tree Longest Consecutive Sequence II

Given a binary tree, you need to find the length of Longest Consecutive Path in Binary Tree.

Especially, this path can be either increasing or decreasing. For example, [1,2,3 ...

继续阅读