ZhangZhihui's Blog  

2025年4月1日

摘要: Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of sequent 阅读全文
posted @ 2025-04-01 22:00 ZhangZhihuiAAA 阅读(9) 评论(0) 推荐(0)
 
摘要: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = 3 Output: ["((()))","(() 阅读全文
posted @ 2025-04-01 21:20 ZhangZhihuiAAA 阅读(11) 评论(0) 推荐(0)
 
摘要: The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer n, return th 阅读全文
posted @ 2025-04-01 20:40 ZhangZhihuiAAA 阅读(20) 评论(0) 推荐(0)
 
摘要: Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen nu 阅读全文
posted @ 2025-04-01 20:12 ZhangZhihuiAAA 阅读(19) 评论(0) 推荐(0)
 
摘要: Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example 1: Input: nums = [1,2, 阅读全文
posted @ 2025-04-01 19:32 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0)
 
摘要: Given two integers n and k, return all possible combinations of k numbers chosen from the range [1, n]. You may return the answer in any order. Exampl 阅读全文
posted @ 2025-04-01 12:09 ZhangZhihuiAAA 阅读(13) 评论(0) 推荐(0)