mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 766 - Toeplitz Matrix

Posted on 2019-08-12 | In Algorithm , LeetCode
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if the m ...
Read more »

[LeetCode] Problem 500 - Keyboard Row

Posted on 2019-08-11 | In Algorithm , LeetCode
Given a List of words, return the words that can be typed using letters of alphabet on only one row’s of American keyboard like the image below. Exam ...
Read more »

[LeetCode] Problem 999 - Available Captures for Rook

Posted on 2019-08-11 | In Algorithm , LeetCode
On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and black pawns. These are given as characters ‘R’, ...
Read more »

[LeetCode] Problem 893 - Groups of Special-Equivalent Strings

Posted on 2019-08-11 | In Algorithm , LeetCode
You are given an array A of strings. Two strings S and T are special-equivalent if after any number of moves, S == T. A move consists of choosing two ...
Read more »

[LeetCode] Problem 806 - Number of Lines To Write String

Posted on 2019-08-11 | In Algorithm , LeetCode
We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would c ...
Read more »

[LeetCode] Problem 821 - Shortest Distance to a Character

Posted on 2019-08-11 | In Algorithm , LeetCode
Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string. ExampleInput: S ...
Read more »

[LeetCode] Problem 867 - Transpose Matrix

Posted on 2019-08-11 | In Algorithm , LeetCode
Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it’s main diagonal, switching the row and column ind ...
Read more »

[LeetCode] Problem 876 - Middle of the Linked List

Posted on 2019-08-11 | In Algorithm , LeetCode
Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middl ...
Read more »

[LeetCode] Problem 559 - Maximum Depth of N-ary Tree

Posted on 2019-08-10 | In Algorithm , LeetCode
Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest le ...
Read more »

[LeetCode] Problem 883 - Projection Area of 3D Shapes

Posted on 2019-08-10 | In Algorithm , LeetCode
On a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes. Each value v = grid[i][j] represents a tower of v cube ...
Read more »
1…242526…78
mrlonelyjtr

mrlonelyjtr

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

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