logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

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语言#算法
LeetCode //C - 854. K-Similar Strings

Approach The problem requires finding the minimum number of adjacent swaps needed to transform string s1 into s2 when both strings are anagrams. The key insight is that each swap should aim to correct

文章图片
#leetcode#c语言#哈希算法
LeetCode //C - 852. Peak Index in a Mountain Array

This problem requires finding the peak index in a mountain array efficiently. The solution uses binary search to achieve O(log n) time complexity. By comparing middle elements with their neighbors, it

文章图片
#leetcode#c语言#算法
LeetCode //C - 846. Hand of Straights

Summary: The problem determines if a given array of card values can be rearranged into groups of consecutive values, each of size groupSize. The solution involves sorting the array and using a greedy

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