logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

LeetCode //C - 1030. Matrix Cells in Distance Order

Abstract The problem requires sorting all cells of a given matrix in ascending order of their Manhattan distances to the center point (rCenter, cCenter). The solution is to iterate through all cells,

文章图片
#leetcode#c语言#算法
LeetCode //C - 1018. Binary Prefix Divisible By 5

Abstract: This problem requires determining whether each prefix of a binary array is divisible by 5. By progressively calculating the remainder modulo 5 of each prefix, the problem of excessively larg

文章图片
#c语言#leetcode#算法
LeetCode //C - 1015. Smallest Integer Divisible by K

This problem requires finding the smallest number composed only of digit '1' that is divisible by a given integer k. The solution leverages modular arithmetic to efficiently compute remainders without

文章图片
#leetcode#c语言#算法
LeetCode //C - 756. Pyramid Transition Matrix

Abstract:This paper explores the pyramid transformation matrix problem, which requires determining whether a complete pyramid can be constructed given a bottom block and allowed triangle pattern rules

文章图片
#leetcode#c语言#算法
LeetCode //C - 935. Knight Dialer

Summary: The problem involves counting distinct phone numbers of length n where each digit transition follows the chess knight's move pattern on a phone pad. The solution uses dynamic programming (DP)

文章图片
#leetcode#c语言#算法
LeetCode //C - 1014. Best Sightseeing Pair

Abstract The problem asks to find a pair of attractions (i, j) in a given array of tourist attractions that maximizes the rating values[i] + values[j] + i - j. By splitting the formula into (values[i]

文章图片
#leetcode#c语言#算法
LeetCode //C - 810. Chalkboard XOR Game

Summary: The problem involves a game where Alice and Bob take turns removing numbers from a chalkboard, with Alice starting first. A player loses if their move makes the XOR of all remaining numbers z

文章图片
#leetcode#c语言#算法
LeetCode //C - 913. Cat and Mouse

Summary: The problem models a Cat and Mouse game on an undirected graph where players alternate moves. The mouse starts at node 1, the cat at node 2, and the hole is at node 0. The game ends if the ca

文章图片
#leetcode#c语言#算法
LeetCode //C - 593. Valid Square

Given the coordinates of four points in 2D space p1, p2, p3 and p4, return true if the four points construct a square.The coordinate of a point pip_ipi​ is represented as [xi,yi][x_i, y_i][xi​,yi​]. T

文章图片
#leetcode#c语言#算法
LeetCode //C - 1010. Pairs of Songs With Total Durations Divisible by 60

Summary: The problem requires counting pairs of songs whose total duration is divisible by 60. The solution leverages modular arithmetic to simplify the problem. For each song duration, we compute its

文章图片
#leetcode#c语言#算法
    共 77 条
  • 1
  • 2
  • 3
  • 8
  • 请选择