ZhangZhihui's Blog  
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 116 下一页

2025年3月17日

摘要: Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs( 阅读全文
posted @ 2025-03-17 20:04 ZhangZhihuiAAA 阅读(10) 评论(0) 推荐(0)

2025年3月16日

摘要: According to Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Hort 阅读全文
posted @ 2025-03-16 22:20 ZhangZhihuiAAA 阅读(25) 评论(0) 推荐(0)
 
摘要: Given an m x n matrix, return all elements of the matrix in spiral order. Example 1: Input: matrix = [[1,2,3],[4,5,6],[7,8,9]] Output: [1,2,3,6,9,8,7, 阅读全文
posted @ 2025-03-16 16:52 ZhangZhihuiAAA 阅读(12) 评论(0) 推荐(0)
 
摘要: Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the dig 阅读全文
posted @ 2025-03-16 15:17 ZhangZhihuiAAA 阅读(13) 评论(0) 推荐(0)

2025年3月15日

摘要: Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicat 阅读全文
posted @ 2025-03-15 17:31 ZhangZhihuiAAA 阅读(27) 评论(0) 推荐(0)
 
摘要: You are given a string s and an array of strings words. All the strings of words are of the same length. A concatenated string is a string that exactl 阅读全文
posted @ 2025-03-15 16:03 ZhangZhihuiAAA 阅读(42) 评论(0) 推荐(0)
 
摘要: Given a string s, find the length of the longest substring without duplicate characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The a 阅读全文
posted @ 2025-03-15 11:48 ZhangZhihuiAAA 阅读(29) 评论(0) 推荐(0)
 
摘要: Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or equal to  阅读全文
posted @ 2025-03-15 01:29 ZhangZhihuiAAA 阅读(30) 评论(0) 推荐(0)

2025年3月14日

摘要: Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] 阅读全文
posted @ 2025-03-14 22:54 ZhangZhihuiAAA 阅读(37) 评论(0) 推荐(0)
 
摘要: You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, hei 阅读全文
posted @ 2025-03-14 20:44 ZhangZhihuiAAA 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 116 下一页