08 2024 档案

摘要:You are given a 2D matrix grid of size m x n. You need to check if each cell grid[i][j] is: Equal to the cell below it, i.e. grid[i][j] == grid[i + 1] 阅读全文
posted @ 2024-08-29 05:27 CNoodle 阅读(50) 评论(0) 推荐(0)
摘要:A distinct string is a string that is present only once in an array. Given an array of strings arr, and an integer k, return the kth distinct string p 阅读全文
posted @ 2024-08-05 14:25 CNoodle 阅读(61) 评论(0) 推荐(0)
摘要:A swap is defined as taking two distinct positions in an array and swapping the values in them. A circular array is defined as an array where we consi 阅读全文
posted @ 2024-08-04 02:56 CNoodle 阅读(110) 评论(0) 推荐(0)