摘要:
/** * * @author gentleKay * Given a binary tree, return the preorder traversal of its nodes' values. * For example: * Given binary tree{1,#,2,3}, * 1 阅读全文
摘要:
/** * * @author gentleKay * Given an array of integers, every element appears three times except for one. Find that single one. * Note: * Your algorit 阅读全文
摘要:
/** * * @author gentleKay * Merge two sorted linked lists and return it as a new list. * The new list should be made by splicing together the nodes of 阅读全文
摘要:
获取map集合中键和值的三种方式 有三种。 关于获取map集合中键和值这个用法的话,可以用到OJ题中。比如:给你一个数组,除了一个数字数量是一个,其他数字都有三个或者三个以上。就可以用Map来解决。 也可以用 ^ 运算符解决。 因为 5^5 = 0; 0^5 = 5;就可以得到答案,具体问题具体分析 阅读全文