mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 864 - Shortest Path to Get All Keys

Posted on 2019-07-04 | In Algorithm , LeetCode
We are given a 2-dimensional grid. “.” is an empty cell, “#” is a wall, “@” is the starting point, (“a”, “b”, …) are keys, and (“A”, “B”, …) are locks ...
Read more »

[LeetCode] Problem 847 - Shortest Path Visiting All Nodes

Posted on 2019-07-04 | In Algorithm , LeetCode
An undirected, connected graph of N nodes (labeled 0, 1, 2, …, N-1) is given as graph. graph.length = N, and j != i is in the list graph[i] exactly on ...
Read more »

[LeetCode] Problem 815 - Bus Routes

Posted on 2019-07-02 | In Algorithm , LeetCode
We have a list of bus routes. Each routes[i] is a bus route that the i-th bus repeats forever. For example if routes[0] = [1, 5, 7], this means that t ...
Read more »

[LeetCode] Problem 787 - Cheapest Flights Within K Stops

Posted on 2019-07-01 | In Algorithm , LeetCode
There are n cities connected by m flights. Each fight starts from city u and arrives at v with a price w. Now given all the cities and flights, togeth ...
Read more »

[LeetCode] Problem 785 - Is Graph Bipartite?

Posted on 2019-07-01 | In Algorithm , LeetCode
Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it’s set of nodes into two ind ...
Read more »

[LeetCode] Problem 529 - Minesweeper

Posted on 2019-07-01 | In Algorithm , LeetCode
Let’s play the minesweeper game! You are given a 2D char matrix representing the game board. ‘M’ represents an unrevealed mine, ‘E’ represents an unre ...
Read more »

[LeetCode] Problem 752 - Open the Lock

Posted on 2019-07-01 | In Algorithm , LeetCode
You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: ‘0’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’. The wheels can rota ...
Read more »

[LeetCode] Problem 743 - Network Delay Time

Posted on 2019-06-30 | In Algorithm , LeetCode
There are N network nodes, labelled 1 to N. Given times, a list of travel times as directed edges times[i] = (u, v, w), where u is the source node, v ...
Read more »

[LeetCode] Problem 690 - Employee Importance

Posted on 2019-06-28 | In Algorithm , LeetCode
You are given a data structure of employee information, which includes the employee’s unique id, his importance value and his direct subordinates’ id. ...
Read more »

[LeetCode] Problem 542 - 01 Matrix

Posted on 2019-06-28 | In Algorithm , LeetCode
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. ExampleNo.1Input: ...
Read more »
1…323334…78
mrlonelyjtr

mrlonelyjtr

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

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