原创 Snake on a phone——Android開源項目實戰,貪喫蛇遊戲
Snake on a phone——Android開源項目實戰,貪喫蛇遊戲 本文以及後續幾篇文章對貪喫蛇開源項目進行源碼剖析,以此爲切入點對相關知識點進行總結,最後對項目進行擴展,實現可以在手機上操作的遊戲,也就是觸摸操作的Sn
原创 path_sum2
題目描述 Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum. For ex
原创 git 本地庫關聯到github
情景 平常我們本地有自己的項目使用git管理,如何把本地庫傳到遠程github上呢,下面是我自己的一次實際操作過程。 1 首先遠程創建一個庫github create new repository即可 2 然後關聯遠程(1中創
原创 Binary Tree Level Order Traversal II
題目描述 Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right
原创 Snake on a phone——Android開源項目實戰,貪吃蛇遊戲
Snake on a phone——Android開源項目實戰,貪吃蛇遊戲 本文以及後續幾篇文章對貪吃蛇開源項目進行源碼剖析,以此爲切入點對相關知識點進行總結,最後對項目進行擴展,實現可以在手機上操作的遊戲,也就是觸摸操作的Sn
原创 leetcode_wordladder2
題目描述 Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to
原创 leetcode_Max Points on a Line
/* * Max Points on a Line * */ public int maxPoints(Point[] points) { int max = 0; fo
原创 path_sum
題目描述 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the valu
原创 leetcode_wordladder
題目描述 Given two words (beginWord and endWord), and a dictionary, find the length of shortest transformation sequenc
原创 leetcode_PermutationSequence
題目描述(Permutation Sequence) The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling
原创 leetcode_Sort a linked list using insertion sort.
/* * Sort a linked list using insertion sort. * */ public ListNode insertionSortList(ListNode head) {
原创 leetcode_BinaryTreeLevelOrderTraversal
題目描述 Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by
原创 leetcode_Sort a linked list in O(n log n) time using constant space complexity.
/* * Sort a linked list in O(n log n) time using constant space complexity. * */ public ListNode sortList(ListNod
原创 win7啓動後trustedinstaller.exe佔用cpu過高問題
本文參考 http://www.drivers.com/update/pc-health/how-to-resolve-trustedinstaller-exe-high-cpu-usage/ 筆者筆記本電腦操作系統Win7
原创 leetcode_single number
題目描述 Given an array of integers, every element appears twice except for one. Find that single one. Note: Your a