logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

LeetCode //C - 898. Bitwise ORs of Subarrays

This article describes how to efficiently count the number of unique values ​​in the bitwise OR operation for all non-empty subarrays in an array. The key idea is to maintain a dynamic hash set and gr

文章图片
#leetcode#c语言#算法
LeetCode //C - 896. Monotonic Array

This problem determines whether an array is monotonic (increasing or decreasing). By maintaining two Boolean flags, nonDecreasing and nonIncreasing, the relationship between adjacent elements is check

文章图片
#leetcode#c语言#算法
LeetCode //C - 896. Monotonic Array

This problem determines whether an array is monotonic (increasing or decreasing). By maintaining two Boolean flags, nonDecreasing and nonIncreasing, the relationship between adjacent elements is check

文章图片
#leetcode#c语言#算法
LeetCode //C - 867. Transpose Matrix

This problem requires returning the transposed matrix of a given matrix. A transposed matrix is ​​a new matrix obtained by swapping the row and column indices of the original matrix, essentially chang

文章图片
#leetcode#c语言#算法
LeetCode //C - 865. Smallest Subtree with all the Deepest Nodes

Article Summary:The task is to find the smallest subtree in a binary tree that contains all deepest nodes. Using a depth-first search (DFS), for each subtree, the maximum depth and the lowest common a

文章图片
#leetcode#c语言#算法
高等数学(第七版)同济大学 习题11-3 (后4题)个人解答

高等数学(第七版)同济大学 习题11-3 (后4题)个人解答

LeetCode //C - 862. Shortest Subarray with Sum at Least K

Summary: This problem requires finding the shortest contiguous subarray in an integer array nums with a sum of at least k. The solution efficiently computes prefix sums and uses a monotonic deque to t

文章图片
#leetcode#c语言#算法
LeetCode //C - 857. Minimum Cost to Hire K Workers

This article discusses how to hire K workers at the lowest cost, ensuring wages proportional to work quality and no less than the minimum desired wage. The key idea is to sort workers by their wage/qu

文章图片
#leetcode#c语言#算法
LeetCode //C - 856. Score of Parentheses

Summary: The problem involves calculating the score of a balanced parentheses string based on specific rules. The score is determined by the depth of nested parentheses: each inner pair "()"

文章图片
#leetcode#c语言#算法
LeetCode //C - 856. Score of Parentheses

Summary: The problem involves calculating the score of a balanced parentheses string based on specific rules. The score is determined by the depth of nested parentheses: each inner pair "()"

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