摘要: Follow up for "Remove Duplicates":What if duplicates are allowed at most twice? For example,Given sorted array nums = [1,1,1,2,2,3], Your function sho 阅读全文
posted @ 2017-03-23 21:40 Tsunami_lj 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai < 231. Find the maximum result of ai XOR aj, where 0 ≤ i, j < n. Could you do t 阅读全文
posted @ 2017-03-23 21:04 Tsunami_lj 阅读(135) 评论(0) 推荐(0) 编辑
摘要: A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: This is how the UTF-8 encoding would work: Given an array of inte 阅读全文
posted @ 2017-03-23 12:08 Tsunami_lj 阅读(159) 评论(0) 推荐(0) 编辑