加载中...
分类详情
简单 分类
1260-二维网格迁移(Shift 2D Grid)
原文链接: https://leetcode-cn.com/problems/shift-2d-grid 英文原文Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] moves to grid[i][j + 1]. Element at grid[i][n - 1] moves to gri…
2021-12-03
1417-重新格式化字符串(Reformat The String)
原文链接: https://leetcode-cn.com/problems/reformat-the-string 英文原文Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits). You have to find a permutation of the string where no letter is followed…
2021-12-03
1446-连续字符(Consecutive Characters)
原文链接: https://leetcode-cn.com/problems/consecutive-characters 英文原文The power of the string is the maximum length of a non-empty substring that contains only one unique character. Given a string s, return the power of s. Example 1: Input: s = "leetcode…
2021-12-03
1436-旅行终点站(Destination City)
原文链接: https://leetcode-cn.com/problems/destination-city 英文原文You are given the array paths, where paths[i] = [cityAi, cityBi] means there exists a direct path going from cityAi to cityBi. Return the destination city, that is, the city without any path…
2021-12-03