mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 717 - 1-bit and 2-bit Characters

Posted on 2019-04-23 | In Algorithm , LeetCode
We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). N ...
Read more »

[LeetCode] Problem 89 - Gray Code

Posted on 2019-04-23 | In Algorithm , LeetCode
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num ...
Read more »

[LeetCode] Problem 49 - Group Anagrams

Posted on 2019-04-22 | In Algorithm , LeetCode
Given an array of strings, group anagrams together. ExampleInput: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], Output: 12345[ ["ate","eat","tea"], [" ...
Read more »

[LeetCode] Problem 43 - Multiply Strings

Posted on 2019-04-22 | In Algorithm , LeetCode
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. ExampleNo.1In ...
Read more »

[LeetCode] Problem 415 - Add Strings

Posted on 2019-04-22 | In Algorithm , LeetCode
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note The length of both num1 and num2 is < 51 ...
Read more »

[LeetCode] Problem 48 - Rotate Image

Posted on 2019-04-22 | In Algorithm , LeetCode
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which ...
Read more »

[LeetCode] Problem 34 - Find First and Last Position of Element in Sorted Array

Posted on 2019-04-21 | In Algorithm , LeetCode
Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm’s runtime com ...
Read more »

[LeetCode] Problem 95 - Unique Binary Search Trees II

Posted on 2019-04-20 | In Algorithm , LeetCode
Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1 … n. ExampleInput: 3 Output: 1234567[ [1,null,3, ...
Read more »

[LeetCode] Problem 96 - Unique Binary Search Trees

Posted on 2019-04-20 | In Algorithm , LeetCode
Given n, how many structurally unique BST’s (binary search trees) that store values 1 … n? ExampleInput: 3 Output: 5 Explanation:Given n = 3, there ar ...
Read more »

[LeetCode] Problem 119 - Pascal's Triangle II

Posted on 2019-04-18 | In Algorithm , LeetCode
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal’s triangle. Note that the row index starts from 0. In Pascal’s tria ...
Read more »
1…454647…78
mrlonelyjtr

mrlonelyjtr

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

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