mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[Leetcode] Problem 567 - Permutation in String

Posted on 2020-11-13 | In Algorithm , LeetCode
Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string’s permutati ...
Read more »

[Leetcode] Problem 525 - Contiguous Array

Posted on 2020-11-12 | In Algorithm , LeetCode
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. ExampleNo.1Input: [0,1] Output: 2 Explanation: [0 ...
Read more »

[Leetcode] Problem 451 - Sort Characters By Frequency

Posted on 2020-11-11 | In Algorithm , LeetCode
Given a string, sort it in decreasing order based on the frequency of characters. ExampleNo.1Input:“tree” Output:“eert” Explanation:‘e’ appears twice ...
Read more »

[Leetcode] Problem 1642 - Furthest Building You Can Reach

Posted on 2020-11-10 | In Algorithm , LeetCode
You are given an integer array heights representing the heights of buildings, some bricks, and some ladders. You start your journey from building 0 an ...
Read more »

[Leetcode] Problem 1354 - Construct Target Array With Multiple Sums

Posted on 2020-11-03 | In Algorithm , LeetCode
Given an array of integers target. From a starting array, A consisting of all 1’s, you may perform the following procedure: let x be the sum of all e ...
Read more »

[Leetcode] Problem 1178 - Number of Valid Words for Each Puzzle

Posted on 2020-11-02 | In Algorithm , LeetCode
With respect to a given puzzle string, a word is valid if both the following conditions are satisfied: word contains the first letter of puzzle. For ...
Read more »

[Leetcode] Problem 1488 - Avoid Flood in The City

Posted on 2020-11-01 | In Algorithm , LeetCode
Your country has an infinite number of lakes. Initially, all the lakes are empty, but when it rains over the nth lake, the nth lake becomes full of wa ...
Read more »

[Leetcode] Problem 739 - Daily Temperatures

Posted on 2020-10-31 | In Algorithm , LeetCode
Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warme ...
Read more »

[Leetcode] Problem 1475 - Final Prices With a Special Discount in a Shop

Posted on 2020-10-31 | In Algorithm , LeetCode
Given the array prices where prices[i] is the price of the ith item in a shop. There is a special discount for items in the shop, if you buy the ith i ...
Read more »

[Leetcode] Problem 1371 - Find the Longest Substring Containing Vowels in Even Counts

Posted on 2020-10-30 | In Algorithm , LeetCode
Given the string s, return the size of the longest substring containing each vowel an even number of times. That is, ‘a’, ‘e’, ‘i’, ‘o’, and ‘u’ must ...
Read more »
12…78
mrlonelyjtr

mrlonelyjtr

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

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