logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

LeetCode //C - 960. Delete Columns to Make Sorted III

This article introduces how to solve LeetCode problem 960: Sort an array of strings by removing columns. The goal of this problem is to find the minimum number of columns to remove so that the remaini

文章图片
#leetcode#c语言#算法
LeetCode //C - 957. Prison Cells After N Days

Abstract: This problem describes the initial state of 8 prison cells. The current cell state is updated daily based on the states of adjacent cells (the first and last cells are always 0). Given the n

文章图片
#leetcode#c语言#算法
LeetCode //C - 954. Array of Doubled Pairs

Abstract: The problem asks whether a given even-length array can be reordered such that each odd-numbered element is twice the number of its preceding element. The solution is to count the frequency o

文章图片
#leetcode#c语言#算法
LeetCode //C - 948. Bag of Tokens

The problem involves maximizing a score by strategically playing tokens either face-up (spending power to gain score) or face-down (spending score to gain power). The solution involves sorting the tok

文章图片
#leetcode#c语言#算法
LeetCode //C - 944. Delete Columns to Make Sorted

Summary: The problem involves determining the number of columns to delete from a grid of strings to ensure all remaining columns are sorted lexicographically. The solution iterates through each column

文章图片
#leetcode#c语言#算法
LeetCode //C - 941. Valid Mountain Array

Summary: The problem checks if an array is a valid mountain array, which must: Have length ≥ 3 Strictly increase to a peak (not at the ends) Strictly decrease after the peak End at the last element Ap

文章图片
#leetcode#c语言#算法
LeetCode //C - 939. Minimum Area Rectangle

Abstract: Given a set of points on a plane, calculate the minimum area of ​​a rectangle formed by these points with sides parallel to the coordinate axes. If no such rectangle exists, return 0. Soluti

文章图片
#leetcode#c语言#算法
LeetCode //C - 937. Reorder Data in Log Files

This problem involves reordering log files based on specific criteria. The solution separates logs into letter-logs (containing letters after the identifier) and digit-logs (containing digits). Letter

文章图片
#leetcode#c语言#算法
LeetCode //C - 933. Number of Recent Calls

The problem involves tracking recent requests within a 3000-millisecond window. The solution uses a RecentCounter class with a dynamically expanding array to store request timestamps. The key optimiza

文章图片
#leetcode#c语言#算法
LeetCode //C - 929. Unique Email Addresses

This problem requires counting the number of distinct email addresses that actually received the emails. The processing rules include:The period ('.') in the locale name is ignored; for example, "alic

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