πŸ“
notes
  • Initial page
  • 02_ds_algo
    • ds
      • Union Find
      • Binary Indexed Tree
      • Stack
      • String
      • Linked List
      • Segment Tree
      • Union Find
      • Union Find
      • Array
      • Tree
      • Hash Table
      • queue
    • algo
      • Backtracking
      • Sort
      • Binary Search
      • Depth First Search
      • Bit Manipulation
      • Dynamic Programming
      • Breadth First Search
      • Two Pointers
      • Math
      • Sliding Window
    • leetcode
      • List
      • 1. Two Sum
      • READEME
      • 2. Add Two Numbers
  • README
    • README
      • pointer
      • effective-cpp
      • roadmap
      • pimpl
      • smartptr
  • 03_cheatsheet
    • README
      • git
      • gdb
    • README
      • bash
      • Python ι€ŸζŸ₯θ‘¨δΈ­ζ–‡η‰ˆ
    • README
      • vim
Powered by GitBook
On this page

Was this helpful?

  1. 02_ds_algo
  2. algo

Math

No.

Title

Solution

Difficulty

TimeComplexity

SpaceComplexity

Favorite

Acceptance

0002

Add Two Numbers

Medium

O(n)

O(1)

35.2%

0007

Reverse Integer

Easy

25.9%

0009

Palindrome Number

Easy

49.5%

0013

Roman to Integer

Easy

56.4%

0029

Divide Two Integers

Medium

16.6%

0050

Pow(x, n)

Medium

O(log n)

O(1)

30.8%

0060

Permutation Sequence

Hard

O(n log n)

O(1)

39.2%

0067

Add Binary

Easy

46.7%

0069

Sqrt(x)

Easy

O(log n)

O(1)

34.9%

0168

Excel Sheet Column Title

Easy

31.6%

0171

Excel Sheet Column Number

Easy

56.8%

0172

Factorial Trailing Zeroes

Easy

38.4%

0202

Happy Number

Easy

O(log n)

O(1)

51.1%

0204

Count Primes

Easy

32.1%

0223

Rectangle Area

Medium

0224

Basic Calculator

Hard

O(n)

O(n)

38.0%

0231

Power of Two

Easy

O(1)

O(1)

43.8%

0258

Add Digits

Easy

58.4%

0263

Ugly Number

Easy

O(log n)

O(1)

41.7%

0268

Missing Number

Easy

53.5%

0326

Power of Three

Easy

O(1)

O(1)

42.1%

0343

Integer Break

Medium

O(n^2)

O(n)

51.1%

0357

Count Numbers with Unique Digits

Medium

O(1)

O(1)

48.8%

0367

Valid Perfect Square

Easy

42.0%

0372

Super Pow

Medium

36.6%

0397

Integer Replacement

Medium

33.4%

0441

Arranging Coins

Easy

42.3%

0447

Number of Boomerangs

Medium

52.4%

0453

Minimum Moves to Equal Array Elements

Easy

50.7%

0483

Smallest Good Base

Hard

36.2%

0507

Perfect Number

Easy

36.0%

0537

Complex Number Multiplication

Medium

68.3%

0598

Range Addition II

Easy

50.0%

0628

Maximum Product of Three Numbers

Easy

O(n)

O(1)

47.0%

0633

Sum of Square Numbers

Medium

32.5%

0645

Set Mismatch

Easy

42.5%

0753

Cracking the Safe

Hard

52.1%

0781

Rabbits in Forest

Medium

55.4%

0812

Largest Triangle Area

Easy

58.9%

0836

Rectangle Overlap

Easy

45.0%

0878

Nth Magical Number

Hard

28.9%

0885

Spiral Matrix III

Medium

O(n^2)

O(1)

70.6%

0887

Super Egg Drop

Hard

27.0%

0891

Sum of Subsequence Widths

Hard

O(n log n)

O(1)

32.9%

0892

Surface Area of 3D Shapes

Easy

59.6%

0910

Smallest Range II

Medium

31.2%

0914

X of a Kind in a Deck of Cards

Easy

34.3%

0927

Three Equal Parts

Hard

34.5%

0942

DI String Match

Easy

O(n)

O(1)

73.4%

0949

Largest Time for Given Digits

Medium

36.2%

0952

Largest Component Size by Common Factor

Hard

36.1%

0970

Powerful Integers

Easy

39.9%

0976

Largest Perimeter Triangle

Easy

O(n log n)

O(log n)

58.5%

0996

Number of Squareful Arrays

Hard

O(n log n)

O(n)

48.0%

1017

Convert to Base -2

Medium

59.6%

1025

Divisor Game

Easy

O(1)

O(1)

66.2%

1037

Valid Boomerang

Easy

37.9%

1073

Adding Two Negabinary Numbers

Medium

34.8%

1093

Statistics from a Large Sample

Medium

49.4%

1154

Day of the Year

Easy

49.3%

1175

Prime Arrangements

Easy

51.9%

1201

Ugly Number III

Medium

26.4%

1217

Minimum Cost to Move Chips to The Same Position

Easy

71.2%

1232

Check If It Is a Straight Line

Easy

43.8%

1281

Subtract the Product and Sum of Digits of an Integer

Easy

85.6%

1317

Convert Integer to the Sum of Two No-Zero Integers

Easy

56.8%

1512

Number of Good Pairs

Easy

87.8%

1641

Count Sorted Vowel Strings

Medium

77.3%

1648

Sell Diminishing-Valued Colored Balls

Medium

30.9%

1680

Concatenation of Consecutive Binary Numbers

Medium

45.1%

1685

Sum of Absolute Differences in a Sorted Array

Medium

61.7%

------------

-------------------------------------------------------

-------

----------------

---------------

-------------

-------------

-------------

PreviousTwo PointersNextSliding Window

Last updated 4 years ago

Was this helpful?