摘要:
/** * 105. Construct Binary Tree from Preorder and Inorder Traversal * * https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/ * * Given preorder and ino... 阅读全文
摘要:
如: let a = 1,b=2; a的二进制: 0001 b的二进制: 0010 利用异或运算的规律:两个操作数的位中,相同返回0,不同相返回1 a = a^b;//now a = 0011 b = b^a;//a: 0011, b:0010, now b:0001 a = a^b;//b:000 阅读全文
摘要:
/** * 76. Minimum Window Substring * https://leetcode.com/problems/minimum-window-substring/description/ * * Given a string S and a string T, find the 阅读全文
摘要:
/** * Lock by Leetcode * 369. Plus One Linked List * https://www.lintcode.com/problem/plus-one-linked-list/description * * Given a non-negative intege 阅读全文
摘要:
/** 143. Reorder List https://leetcode.com/problems/reorder-list/description/ * @param {ListNode} head * @return {void} Do not return anything, modify 阅读全文