LeetCode
junxinwoxin
这个作者很懒,什么都没留下…
展开
-
Leetcode 89: Java移位运算符作指数的开方
输入:System.out.println(3 ^ 3>>1);输出:2原因待考原创 2017-10-29 20:27:16 · 353 阅读 · 0 评论 -
Leetcode 22, 77: 回溯问题
22. Generate ParenthesesGiven n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ "((()))", "(()())", "(原创 2017-10-03 18:21:35 · 279 阅读 · 0 评论 -
Leetcode 39: python可变类型复制(浅拷贝和深拷贝)
刚刚在leetcode上写了一道算法题:39. Combination Sum,因为踩了python中复制的坑,花了很长时间才爬出来=。=题目:Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the ca原创 2017-08-01 16:41:59 · 421 阅读 · 0 评论