logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

LeetCode //C - 1046. Last Stone Weight

This problem simulates smashing the two heaviest stones together repeatedly until at most one stone remains. The solution involves iteratively finding the two largest stones in the array, smashing the

文章图片
#leetcode#c语言#算法
LeetCode //C - 1045. Customers Who Bought All Products

Problem: Find customers who purchased all available products. Approach: Group customers by their ID and count the distinct products each bought. Compare this count with the total number of products in

文章图片
#leetcode#c语言#算法
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语言#算法
    共 74 条
  • 1
  • 2
  • 3
  • 8
  • 请选择