2.12 Toán (Math)

STTTiêu đềLời giảiĐộ khóĐộ phức tạp thời gianĐộ phức tạp bộ nhớYêu thíchTỷ lệ AC (Acceptance)
0002Cộng hai số (Add Two Numbers)GoMediumO(n)O(1)40.4%
0007Đảo số nguyên (Reverse Integer)GoMedium27.5%
0009Số Palindrome (Palindrome Number)GoEasy53.5%
0012Chuyển số nguyên sang số La Mã (Integer to Roman)GoMedium62.0%
0013Chuyển số La Mã sang số nguyên (Roman to Integer)GoEasy58.6%
0029Chia hai số nguyên (Divide Two Integers)GoMedium17.2%
0043Nhân hai chuỗi (Multiply Strings)GoMedium39.2%
0048Xoay ảnh (Rotate Image)GoMedium71.0%
0050Lũy thừa (Pow(x, n))GoMediumO(log n)O(1)33.0%
0060Chuỗi hoán vị (Permutation Sequence)GoHardO(n log n)O(1)44.4%
0062Số đường đi duy nhất (Unique Paths)GoMedium62.7%
0066Cộng một (Plus One)GoEasy43.7%
0067Cộng nhị phân (Add Binary)GoEasy52.4%
0069Căn bậc hai (Sqrt(x))GoEasyO(log n)O(1)37.4%
0070Leo cầu thang (Climbing Stairs)GoEasy52.2%
0089Mã Gray (Gray Code)GoMedium57.2%
0096Cây nhị phân tìm kiếm duy nhất (Unique Binary Search Trees)GoMedium59.7%
0150Tính biểu thức ký pháp Ba Lan ngược (Evaluate Reverse Polish Notation)GoMedium45.8%
0168Tiêu đề cột trong bảng tính Excel (Excel Sheet Column Title)GoEasy35.5%
0171Số cột trong bảng tính Excel (Excel Sheet Column Number)GoEasy62.1%
0172Số lượng số 0 tận cùng của giai thừa (Factorial Trailing Zeroes)GoMedium42.2%
0189Xoay mảng (Rotate Array)GoMedium39.4%
0202Số hạnh phúc (Happy Number)GoEasyO(log n)O(1)54.8%
0204Đếm số nguyên tố (Count Primes)GoMedium33.1%
0223Diện tích hình chữ nhật (Rectangle Area)GoMedium45.1%
0224Máy tính cơ bản (Basic Calculator)GoHardO(n)O(n)42.4%
0227Máy tính cơ bản II (Basic Calculator II)GoMedium42.4%
0231Lũy thừa của 2 (Power of Two)GoEasyO(1)O(1)46.0%
0258Cộng các chữ số (Add Digits)GoEasy64.0%
0263Số xấu (Ugly Number)GoEasyO(log n)O(1)42.3%
0264Số xấu II (Ugly Number II)GoMedium46.2%
0268Số bị thiếu (Missing Number)GoEasy62.6%
0279Các số chính phương hoàn hảo (Perfect Squares)GoMedium52.7%
0319Công tắc bóng đèn (Bulb Switcher)GoMedium48.3%
0326Lũy thừa của 3 (Power of Three)GoEasyO(1)O(1)45.5%
0342Lũy thừa của 4 (Power of Four)GoEasy46.2%
0343Tách số nguyên (Integer Break)GoMediumO(n^2)O(n)56.1%
0357Đếm số có chữ số duy nhất (Count Numbers with Unique Digits)GoMediumO(1)O(1)51.9%
0367Số chính phương hoàn hảo hợp lệ (Valid Perfect Square)GoEasy43.3%
0368Tập con chia hết lớn nhất (Largest Divisible Subset)GoMedium41.6%
0371Tổng của hai số nguyên (Sum of Two Integers)GoMedium50.7%
0372Siêu lũy thừa (Super Pow)GoMedium36.3%
0382Nút ngẫu nhiên trong danh sách liên kết (Linked List Random Node)GoMedium62.8%
0384Xáo trộn mảng (Shuffle an Array)GoMedium57.8%
0390Trò chơi loại bỏ (Elimination Game)GoMedium46.1%
0396Hàm xoay (Rotate Function)GoMedium41.1%
0400Chữ số thứ N (Nth Digit)GoMedium34.1%
0405Chuyển số sang hệ thập lục phân (Convert a Number to Hexadecimal)GoEasy46.8%
0412Fizz Buzz (Fizz Buzz)GoEasy70.0%
0423Khôi phục các chữ số gốc từ tiếng Anh (Reconstruct Original Digits from English)GoMedium51.2%
0441Sắp xếp tiền xu (Arranging Coins)GoEasy46.2%
0445Cộng hai số II (Add Two Numbers II)GoMedium59.6%
0447Số lượng boomerang (Number of Boomerangs)GoMedium54.9%
0453Số bước tối thiểu để làm các phần tử bằng nhau (Minimum Moves to Equal Array Elements)GoMedium56.0%
0458Những con lợn tội nghiệp (Poor Pigs)GoHard62.8%
0462Số bước tối thiểu để làm các phần tử bằng nhau II (Minimum Moves to Equal Array Elements II)GoMedium60.0%
0470Cài đặt Rand10() từ Rand7() (Implement Rand10() Using Rand7())GoMedium46.4%
0477Tổng khoảng cách Hamming (Total Hamming Distance)GoMedium52.2%
0478Tạo điểm ngẫu nhiên trong hình tròn (Generate Random Point in a Circle)GoMedium39.6%
0483Cơ số tốt nhỏ nhất (Smallest Good Base)GoHard38.8%
0492Xây dựng hình chữ nhật (Construct the Rectangle)GoEasy54.8%
0497Điểm ngẫu nhiên trong các hình chữ nhật không chồng lấp (Random Point in Non-overlapping Rectangles)GoMedium39.4%
0504Cơ số 7 (Base 7)GoEasy48.5%
0507Số hoàn hảo (Perfect Number)GoEasy37.7%
0509Số Fibonacci (Fibonacci Number)GoEasy69.8%
0519Lật ma trận ngẫu nhiên (Random Flip Matrix)GoMedium40.0%
0523Tổng mảng con liên tiếp (Continuous Subarray Sum)GoMedium28.5%
0528Chọn ngẫu nhiên theo trọng số (Random Pick with Weight)GoMedium46.1%
0537Nhân số phức (Complex Number Multiplication)GoMedium71.4%
0598Cộng đoạn II (Range Addition II)GoEasy55.3%
0628Tích lớn nhất của ba số (Maximum Product of Three Numbers)GoEasyO(n)O(1)45.9%
0633Tổng của các số chính phương (Sum of Square Numbers)GoMedium34.4%
0667Sắp xếp đẹp II (Beautiful Arrangement II)GoMedium59.8%
0668Số nhỏ thứ K trong bảng nhân (Kth Smallest Number in Multiplication Table)GoHard51.4%
0710Chọn ngẫu nhiên với danh sách đen (Random Pick with Blacklist)GoHard33.5%
0728Các số tự chia (Self Dividing Numbers)GoEasy77.9%
0762Số nguyên tố của bit được bật trong biểu diễn nhị phân (Prime Number of Set Bits in Binary Representation)GoEasy68.0%
0775Đảo ngược toàn cục và cục bộ (Global and Local Inversions)GoMedium43.3%
0781Thỏ trong rừng (Rabbits in Forest)GoMedium54.7%
0793Kích thước tiền ảnh của hàm số lượng số 0 của giai thừa (Preimage Size of Factorial Zeroes Function)GoHard43.2%
0810Trò chơi XOR bảng phấn (Chalkboard XOR Game)GoHard55.8%
0812Diện tích tam giác lớn nhất (Largest Triangle Area)GoEasy59.9%
0836Hình chữ nhật chồng lên nhau (Rectangle Overlap)GoEasy43.9%
0869Sắp xếp lại lũy thừa của 2 (Reordered Power of 2)GoMedium63.5%
0877Trò chơi đá (Stone Game)GoMedium69.7%
0878Số ma thuật thứ N (Nth Magical Number)GoHard35.4%
0887Siêu thả trứng (Super Egg Drop)GoHard27.1%
0891Tổng độ rộng dãy con (Sum of Subsequence Widths)GoHardO(n log n)O(1)36.7%
0892Diện tích bề mặt của hình 3D (Surface Area of 3D Shapes)GoEasy64.0%
0910Khoảng nhỏ nhất II (Smallest Range II)GoMedium35.2%
0914X cùng loại trong bộ bài (X of a Kind in a Deck of Cards)GoEasy31.2%
0920Số lượng danh sách phát nhạc (Number of Music Playlists)GoHard50.7%
0927Ba phần bằng nhau (Three Equal Parts)GoHard39.6%
0952Kích thước thành phần lớn nhất theo ước chung (Largest Component Size by Common Factor)GoHard40.0%
0970Số nguyên mạnh (Powerful Integers)GoMedium43.6%
0973K điểm gần gốc tọa độ nhất (K Closest Points to Origin)GoMedium65.7%
0976Chu vi tam giác lớn nhất (Largest Perimeter Triangle)GoEasyO(n log n)O(log n)54.7%
0989Cộng vào dạng mảng của số nguyên (Add to Array-Form of Integer)GoEasy47.1%
0991Máy tính bị hỏng (Broken Calculator)GoMedium54.1%
0996Số lượng mảng squareful (Number of Squareful Arrays)GoHardO(n log n)O(n)49.2%
1006Giai thừa vụng về (Clumsy Factorial)GoMedium55.5%
1017Chuyển sang cơ số -2 (Convert to Base -2)GoMedium60.9%
1025Trò chơi ước số (Divisor Game)GoEasyO(1)O(1)67.6%
1030Các ô ma trận theo thứ tự khoảng cách (Matrix Cells in Distance Order)GoEasy69.7%
1037Boomerang hợp lệ (Valid Boomerang)GoEasy37.0%
1040Di chuyển đá đến khi liên tiếp II (Moving Stones Until Consecutive II)GoMedium55.9%
1073Cộng hai số âm cơ số 2 (Adding Two Negabinary Numbers)GoMedium36.5%
1093Thống kê từ mẫu lớn (Statistics from a Large Sample)GoMedium43.5%
1104Đường đi trong cây nhị phân nhãn zigzag (Path In Zigzag Labelled Binary Tree)GoMedium75.1%
1137Số Tribonacci thứ N (N-th Tribonacci Number)GoEasy63.7%
1154Ngày trong năm (Day of the Year)GoEasy49.6%
1175Sắp xếp số nguyên tố (Prime Arrangements)GoEasy54.7%
1185Ngày trong tuần (Day of the Week)GoEasy57.4%
1201Số xấu III (Ugly Number III)GoMedium28.9%
1217Chi phí tối thiểu để chuyển chip về cùng vị trí (Minimum Cost to Move Chips to The Same Position)GoEasy71.9%
1232Kiểm tra có phải đường thẳng không (Check If It Is a Straight Line)GoEasy40.3%
1252Ô có giá trị lẻ trong ma trận (Cells with Odd Values in a Matrix)GoEasy78.5%
1266Thời gian tối thiểu thăm tất cả các điểm (Minimum Time Visiting All Points)GoEasy79.1%
1281Lấy tích trừ tổng các chữ số (Subtract the Product and Sum of Digits of an Integer)GoEasy86.6%
1290Chuyển số nhị phân trong danh sách liên kết thành số nguyên (Convert Binary Number in a Linked List to Integer)GoEasy82.1%
1304Tìm N số nguyên duy nhất có tổng bằng 0 (Find N Unique Integers Sum up to Zero)GoEasy76.9%
1317Chuyển số nguyên thành tổng của hai số không chứa chữ số 0 (Convert Integer to the Sum of Two No-Zero Integers)GoEasy55.4%
1442Đếm bộ ba tạo hai mảng có XOR bằng nhau (Count Triplets That Can Form Two Arrays of Equal XOR)GoMedium76.1%
1486Phép toán XOR trong mảng (XOR Operation in an Array)GoEasy84.6%
1512Số lượng cặp tốt (Number of Good Pairs)GoEasy88.2%
1518Đổi chai nước (Water Bottles)GoEasy60.5%
1551Số thao tác tối thiểu để làm mảng bằng nhau (Minimum Operations to Make Array Equal)GoMedium81.5%
1573Số cách chia một chuỗi (Number of Ways to Split a String)GoMedium32.5%
1641Đếm chuỗi nguyên âm đã sắp xếp (Count Sorted Vowel Strings)GoMedium77.4%
1648Bán bóng màu giảm giá trị (Sell Diminishing-Valued Colored Balls)GoMedium30.4%
1680Nối các số nhị phân liên tiếp (Concatenation of Consecutive Binary Numbers)GoMedium57.0%
1685Tổng chênh lệch tuyệt đối trong mảng đã sắp xếp (Sum of Absolute Differences in a Sorted Array)GoMedium63.5%
1688Số trận đấu trong giải đấu (Count of Matches in Tournament)GoEasy83.1%
1690Trò chơi đá VII (Stone Game VII)GoMedium58.1%
1716Tính tiền trong ngân hàng Leetcode (Calculate Money in Leetcode Bank)GoEasy66.1%
1742Số lượng bóng tối đa trong một hộp (Maximum Number of Balls in a Box)GoEasy73.6%
2038Xóa các mảnh màu nếu hai hàng xóm cùng màu (Remove Colored Pieces if Both Neighbors are the Same Color)GoMedium57.9%
2165Giá trị nhỏ nhất của số sau khi sắp xếp lại (Smallest Value of the Rearranged Number)GoMedium51.4%
2169Đếm số thao tác để đưa về 0 (Count Operations to Obtain Zero)GoEasy75.2%
2180Đếm số nguyên có tổng chữ số chẵn (Count Integers With Even Digit Sum)GoEasy65.5%
2183Đếm các cặp mảng chia hết cho K (Count Array Pairs Divisible by K)GoHard28.3%
------------------------------------------------------------------------------------------------------------------------------------------------