摘要:
https://oj.leetcode.com/problems/climbing-stairs/You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or... 阅读全文
摘要:
https://oj.leetcode.com/problems/single-number-ii/Given an array of integers, every element appearsthreetimes except for one. Find that single one.Not... 阅读全文
摘要:
http://artori.us/exclusive-or/不介绍什么是异或了,有人叫半加、数学系的叫按位模2加下文用得到的一些简单的性质x^0 = x且x^x = 0交换律:x^y = y^x结合律:(x^y)^z = x^(y^z)自反性:x^y^y = x下面是几个小题目,可以用异或解决,挺有... 阅读全文
摘要:
https://oj.leetcode.com/problems/search-insert-position/ Given a sorted array and a target value, return the index if the target is found. If not, ret 阅读全文
摘要:
https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/Given a binary tree struct TreeLinkNode { TreeLinkNode *left; ... 阅读全文