mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 118 - Pascal's Triangle

Posted on 2019-04-18 | In Algorithm , LeetCode
Given a non-negative integer numRows, generate the first numRows of Pascal’s triangle. In Pascal’s triangle, each number is the sum of the two number ...
Read more »

[LeetCode] Problem 700 - Search in a Binary Search Tree

Posted on 2019-04-18 | In Algorithm , LeetCode
Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node’s value equals the given value. Retu ...
Read more »

[LeetCode] Problem 701 - Insert into a Binary Search Tree

Posted on 2019-04-18 | In Algorithm , LeetCode
Given the root node of a binary search tree (BST) and a value to be inserted into the tree, insert the value into the BST. Return the root node of the ...
Read more »

[LeetCode] Problem 168 - Excel Sheet Column Title

Posted on 2019-04-17 | In Algorithm , LeetCode
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z ...
Read more »

[LeetCode] Problem 171 - Excel Sheet Column Number

Posted on 2019-04-17 | In Algorithm , LeetCode
Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA ...
Read more »

[LintCode] Problem 860 - Number of Distinct Islands

Posted on 2019-04-16 | In Algorithm , LintCode
Given a non-empty 2D array grid of 0’s and 1’s, an island is a group of 1’s (representing land) connected 4-directionally (horizontal or vertical). Yo ...
Read more »

[LintCode] Problem 1017 - Similar RGB Color

Posted on 2019-04-15 | In Algorithm , LintCode
In the following, every capital letter represents some hexadecimal digit from 0 to f. The red-green-blue color “#AABBCC” can be written as “#ABC” in s ...
Read more »

[LeetCode] Problem 75 - Sort Colors

Posted on 2019-04-14 | In Algorithm , LeetCode
Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the or ...
Read more »

[LeetCode] Problem 922 - Sort Array By Parity II

Posted on 2019-04-13 | In Algorithm , LeetCode
Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever A[i] ...
Read more »

[LeetCode] Problem 324 - Wiggle Sort II

Posted on 2019-04-10 | In Algorithm , LeetCode
Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]…. ExampleNo.1Input: nums = [1, 5, 1, 1, 6, 4] Output ...
Read more »
1…464748…78
mrlonelyjtr

mrlonelyjtr

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

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