Skip to content
  •  Soul Society
  •  0858#969#6261
  •  N/A
Dev Path for CC
  • About
  • Contact

Tag: Math

2364. Count Number of Bad Pairs
LeetCode

2364. Count Number of Bad Pairs

February 9, 2025 Counting, Hash Table, Math, Medium

Permutation: in order. n!/(n – m)! Combination: order not considered. n!/((n – m)! * m!) Key point of this problem is to transfer i…

Leave a Comment on 2364. Count Number of Bad Pairs
1726. Tuple with Same Product
LeetCode

1726. Tuple with Same Product

February 7, 2025 Counting, Hash Table, Math, Medium

Leave a Comment on 1726. Tuple with Same Product
3404. Count Special Subsequences
LeetCode

3404. Count Special Subsequences

January 9, 2025 Hash Table, Math, Medium

Point: Turn multiplication to fraction Hard to realize “for r in range(4, n – 2): q = r – 2” part.

Leave a Comment on 3404. Count Special Subsequences
1427. Perform String Shifts
LeetCode

1427. Perform String Shifts

January 8, 2025 Easy, Math, String

Don’t forget mod when dealing with shifting. A negative number a: a % b = (a + b) % b Anyway, easy makes me…

Leave a Comment on 1427. Perform String Shifts
3411. Maximum Subarray With Equal Products
LeetCode

3411. Maximum Subarray With Equal Products

January 6, 2025January 6, 2025 Easy, Math, Sliding Window

You are given an array of positive integers nums. An array arr is called product equivalent if prod(arr) == lcm(arr) * gcd(arr), where: prod(arr)…

1 Comment on 3411. Maximum Subarray With Equal Products

Recent Posts

  • Understanding Hanfu: Why China’s Traditional Dress Isn’t the Qipao
  • 🚨 Welcome to the Era of o4: Powerful, Autonomous… and Hallucinating?
  • 3472. Longest Palindromic Subsequence After at Most K Operations
  • 3473. Sum of K Subarrays With Length at Least M
  • 3474. Lexicographically Smallest Generated String

Recent Comments

  1. lcsqr on 1462. Course Schedule IV
  2. lcsqr on 1462. Course Schedule IV
  3. lcsqr on 3409. Longest Subsequence With Decreasing Adjacent Difference
  4. lcsqr on 3413. Maximum Coins From K Consecutive Bags
  5. lcsqr on 3411. Maximum Subarray With Equal Products

Archives

  • June 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025

Categories

  • Artificial Intelligence
  • LeetCode
  • Others
Designed by Nasio Themes || Powered by WordPress