mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 748 - Shortest Completing Word

Posted on 2019-10-01 | In Algorithm , LeetCode
Find the minimum length word from a given dictionary words, which has all the letters from the string licensePlate. Such a word is said to complete th ...
Read more »

[LeetCode] Problem 796 - Rotate String

Posted on 2019-09-28 | In Algorithm , LeetCode
We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, ...
Read more »

[LeetCode] Problem 788 - Rotated Digits

Posted on 2019-09-28 | In Algorithm , LeetCode
X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotat ...
Read more »

[LeetCode] Problem 697 - Degree of an Array

Posted on 2019-09-28 | In Algorithm , LeetCode
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t ...
Read more »

[LeetCode] Problem 693 - Binary Number with Alternating Bits

Posted on 2019-09-28 | In Algorithm , LeetCode
Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. ExampleNo.1Input: 5 O ...
Read more »

[LeetCode] Problem 665 - Non-decreasing Array

Posted on 2019-09-28 | In Algorithm , LeetCode
Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non-decr ...
Read more »

[LintCode] Problem 859 - Max Stack

Posted on 2019-09-27 | In Algorithm , LintCode
Design a max stack that supports push, pop, top, peekMax and popMax. push(x) – Push element x onto stack. pop() – Remove the element on top of the st ...
Read more »

[LeetCode] Problem 686 - Repeated String Match

Posted on 2019-09-27 | In Algorithm , LeetCode
Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For ...
Read more »

[LeetCode] Problem 661 - Image Smoother

Posted on 2019-09-27 | In Algorithm , LeetCode
Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the ave ...
Read more »

[LeetCode] Problem 645 - Set Mismatch

Posted on 2019-09-27 | In Algorithm , LeetCode
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n ...
Read more »
1…91011…78
mrlonelyjtr

mrlonelyjtr

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

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