mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 728 - Self Dividing Numbers

Posted on 2019-02-28 | In Algorithm , LeetCode
A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0, 128 ...
Read more »

[LeetCode] Problem 852 - Peak Index in a Mountain Array

Posted on 2019-02-28 | In Algorithm , LeetCode
Let’s call an array A a mountain if the following properties hold: A.length >= 3There exists some 0 < i < A.length - 1 such that A[0] < A[ ...
Read more »

[LeetCode] Problem 617 - Merge Two Binary Trees

Posted on 2019-02-27 | In Algorithm , LeetCode
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n ...
Read more »

[LeetCode] Problem 461 - Hamming Distance

Posted on 2019-02-27 | In Algorithm , LeetCode
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul ...
Read more »

[LeetCode] Problem 944 - Delete Columns to Make Sorted

Posted on 2019-02-27 | In Algorithm , LeetCode
We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, we ...
Read more »

[LeetCode] Problem 942 - DI String Match

Posted on 2019-02-27 | In Algorithm , LeetCode
Given a string S that only contains “I” (increase) or “D” (decrease), let N = S.length. Return any permutation A of [0, 1, …, N] such that for all i = ...
Read more »

[LeetCode] Problem 657 - Robot Return to Origin

Posted on 2019-02-27 | In Algorithm , LeetCode
There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it ...
Read more »

[LeetCode] Problem 832 - Flipping an Image

Posted on 2019-02-26 | In Algorithm , LeetCode
Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means t ...
Read more »

[LeetCode] Problem 905 - Sort Array By Parity

Posted on 2019-02-26 | In Algorithm , LeetCode
Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may re ...
Read more »

[LeetCode] Problem 977 - Squares of a Sorted Array

Posted on 2019-02-26 | In Algorithm , LeetCode
Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order. Examp ...
Read more »
1…585960…78
mrlonelyjtr

mrlonelyjtr

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

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