mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 50 - Pow(x, n)

Posted on 2019-07-19 | In Algorithm , LeetCode
Implement pow(x, n), which calculates x raised to the power n (x^n). ExampleNo.1Input: 2.00000, 10 Output: 1024.00000 No.2Input: 2.10000, 3 Output: 9. ...
Read more »

[LeetCode] Problem 342 - Power of Four

Posted on 2019-07-19 | In Algorithm , LeetCode
Given an integer (signed 32 bits), write a function to check whether it is a power of 4. ExampleNo.1Input: 16 Output: true No.2Input: 5 Output: false ...
Read more »

[LeetCode] Problem 326 - Power of Three

Posted on 2019-07-19 | In Algorithm , LeetCode
Given an integer, write a function to determine if it is a power of three. ExampleNo.1Input: 27 Output: true No.2Input: 0 Output: false No.3Input: 9 O ...
Read more »

[LeetCode] Problem 231 - Power of Two

Posted on 2019-07-19 | In Algorithm , LeetCode
Given an integer, write a function to determine if it is a power of two. ExampleNo.1Input: 1 Output: true Explanation: 2^0 = 1 No.2Input: 16 Output: ...
Read more »

[LeetCode] Problem 412 - Fizz Buzz

Posted on 2019-07-19 | In Algorithm , LeetCode
Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe ...
Read more »

[LeetCode] Problem 509 - Fibonacci Number

Posted on 2019-07-19 | In Algorithm , LeetCode
The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding one ...
Read more »

[LeetCode] Problem 37 - Sudoku Solver

Posted on 2019-07-19 | In Algorithm , LeetCode
Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Each of the digits 1- ...
Read more »

[LeetCode] Problem 36 - Valid Sudoku

Posted on 2019-07-19 | In Algorithm , LeetCode
Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the digi ...
Read more »

[LeetCode] Problem 794 - Valid Tic-Tac-Toe State

Posted on 2019-07-19 | In Algorithm , LeetCode
A Tic-Tac-Toe board is given as a string array board. Return True if and only if it is possible to reach this board position during the course of a va ...
Read more »

[LintCode] Problem 855 - Sentence Similarity II

Posted on 2019-07-17 | In Algorithm , LintCode
Given two sentences words1, words2 (each represented as an array of strings), and a list of similar word pairs pairs, determine if two sentences are s ...
Read more »
1…282930…78
mrlonelyjtr

mrlonelyjtr

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

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