mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 6 - ZigZag Conversion

Posted on 2019-03-02 | In Algorithm , LeetCode
The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font ...
Read more »

[LeetCode] Problem 14 - Longest Common Prefix

Posted on 2019-03-02 | In Algorithm , LeetCode
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string “”. Exampl ...
Read more »

[LeetCode] Problem 58 - Length of Last Word

Posted on 2019-03-02 | In Algorithm , LeetCode
Given a string s consists of upper/lower-case alphabets and empty space characters ‘ ‘, return the length of last word in the string. If the last word ...
Read more »

[LeetCode] Problem 67 - Add Binary

Posted on 2019-03-02 | In Algorithm , LeetCode
Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. ExampleNo ...
Read more »

[LeetCode] Problem 100 - Same Tree

Posted on 2019-03-02 | In Algorithm , LeetCode
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident ...
Read more »

[LeetCode] Problem 101 - Symmetric Tree

Posted on 2019-03-01 | In Algorithm , LeetCode
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
Read more »

[LeetCode] Problem 965 - Univalued Binary Tree

Posted on 2019-03-01 | In Algorithm , LeetCode
A binary tree is univalued if every node in the tree has the same value. Return true if and only if the given tree is univalued. ExampleNo.1 Input: [1 ...
Read more »

[LeetCode] Problem 985 - Sum of Even Numbers After Queries

Posted on 2019-03-01 | In Algorithm , LeetCode
We have an array A of integers, and an array queries of queries. For the i-th query val = queries[i][0], index = queries[i][1], we add val to A[index] ...
Read more »

[LeetCode] Problem 561 - Array Partition I

Posted on 2019-03-01 | In Algorithm , LeetCode
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of mi ...
Read more »

[LeetCode] Problem 933 - Number of Recent Calls

Posted on 2019-03-01 | In Algorithm , LeetCode
Write a class RecentCounter to count recent requests. It has only one method: ping(int t), where t represents some time in milliseconds. Return the nu ...
Read more »
1…575859…78
mrlonelyjtr

mrlonelyjtr

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

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