mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 552 - Student Attendance Record II

Posted on 2019-07-09 | In Algorithm , LeetCode
Given a positive integer n, return the number of all possible attendance records with length n, which will be regarded as rewardable. The answer may b ...
Read more »

[LeetCode] Problem 551 - Student Attendance Record I

Posted on 2019-07-09 | In Algorithm , LeetCode
You are given a string representing an attendance record for a student. The record only contains the following three characters: ‘A’ : Absent. ‘L’ : ...
Read more »

[LeetCode] Problem 350 - Intersection of Two Arrays II

Posted on 2019-07-09 | In Algorithm , LeetCode
Given two arrays, write a function to compute their intersection. ExampleNo.1Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2,2] No.2Input: nums1 = ...
Read more »

[LeetCode] Problem 349 - Intersection of Two Arrays

Posted on 2019-07-09 | In Algorithm , LeetCode
Given two arrays, write a function to compute their intersection. ExampleNo.1Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2] No.2Input: nums1 = [4 ...
Read more »

[LeetCode] Problem 685 - Redundant Connection II

Posted on 2019-07-05 | In Algorithm , LeetCode
In this problem, a rooted tree is a directed graph such that, there is exactly one node (the root) for which all other nodes are descendants of this n ...
Read more »

[LeetCode] Problem 684 - Redundant Connection

Posted on 2019-07-05 | In Algorithm , LeetCode
In this problem, a tree is an undirected graph that is connected and has no cycles. The given input is a graph that started as a tree with N nodes (wi ...
Read more »

[LeetCode] Problem 547 - Friend Circles

Posted on 2019-07-05 | In Algorithm , LeetCode
There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct ...
Read more »

[LeetCode] Problem 841 - Keys and Rooms

Posted on 2019-07-05 | In Algorithm , LeetCode
There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, …, N-1, and each room may have some keys to access the next ro ...
Read more »

[LeetCode] Problem 934 - Shortest Bridge

Posted on 2019-07-04 | In Algorithm , LeetCode
In a given 2D binary array A, there are two islands. (An island is a 4-directionally connected group of 1s not connected to any other 1s.) Now, we ma ...
Read more »

[LeetCode] Problem 909 - Snakes and Ladders

Posted on 2019-07-04 | In Algorithm , LeetCode
On an N x N board, the numbers from 1 to N*N are written boustrophedonically starting from the bottom left of the board, and alternating direction eac ...
Read more »
1…313233…78
mrlonelyjtr

mrlonelyjtr

间歇性踌躇满志,持续性混吃等死

780 posts
18 categories
18 tags
Github
© 2020 mrlonelyjtr
Powered by Hexo
Theme - NexT.Pisces