11/1/2021
https://leetcode-cn.com/problems/generate-parentheses/
https://leetcode.com/problems/generate-parentheses/
https://www.youtube.com/watch?v=s9fokUqJ76A&t=4s
#daily #leetcode
https://leetcode-cn.com/problems/generate-parentheses/
https://leetcode.com/problems/generate-parentheses/
https://www.youtube.com/watch?v=s9fokUqJ76A&t=4s
#daily #leetcode
力扣 LeetCode
22. 括号生成 - 力扣(LeetCode)
数字 n 代表生成括号的对数,请你设计一个函数,用于能够生成所有可能的并且 有效的 括号组合。 示例 1: 输入:n = 3 输出:["((()))","(()())","(())()","()(())","()()()"] 示例 2: 输入:n = 1 输出:["()"] 提示: 1 <= n <= 8。22. Generate Parentheses: Given n pairs of parentheses, write a function to generate all combinations…
👍1
https://leetcode-cn.com/problems/single-number/submissions/
使用bit wise operator实现 a^0 = a a^a = 0 , xor的性质
#leetcode #daily
使用bit wise operator实现 a^0 = a a^a = 0 , xor的性质
#leetcode #daily
力扣 LeetCode
136. 只出现一次的数字 - 力扣(LeetCode)
给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现两次。找出那个只出现了一次的元素。 说明: 你的算法应该具有线性时间复杂度。 你可以不使用额外空间来实现吗? 示例 1: 输入: [2,2,1] 输出: 1 示例 2: 输入: [4,1,2,1,2] 输出: 4。136. Single Number: Given a non-empty array of integers nums, every element appears twice except for one. Find that…