xinyu04

导航

2022年7月25日 #

LeetCode 784 Letter Case Permutation DFS

摘要: Given a string s, you can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible str 阅读全文

posted @ 2022-07-25 17:18 Blackzxy 阅读(16) 评论(0) 推荐(0) 编辑

LeetCode 46 Permutations 回溯

摘要: Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Solution 我们需要求出一个数组的全排列。那么还是依旧 阅读全文

posted @ 2022-07-25 15:47 Blackzxy 阅读(12) 评论(0) 推荐(0) 编辑

LeetCode 77 Combinations 回溯

摘要: Given two integers $n$ and $k$, return all possible combinations of $k$ numbers out of the range [1, n]. You may return the answer in any order. Solut 阅读全文

posted @ 2022-07-25 15:00 Blackzxy 阅读(14) 评论(0) 推荐(0) 编辑