原创 小白筆記----------------------leetcode(100 Same Tree)

Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if th

原创 小白筆記---------------------(算法總結)(1)

小白筆記———————(算法總結)(1) 二分搜索算法 解決問題:從數組中查找已知存在的數的位置 前提條件:一個已經排好序的整型數組 一般解決方式:遍歷數組,找到第一次出現的要找的數,返回它的位置 使用價值:除非特別指定用二分搜

原创 小白筆記----------------------------------leetcode(22. Generate Parentheses )

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. 這道算法涉及到什麼卡特蘭數,

原创 小白筆記---------------------------------------java關鍵詞final

package learning.java.keyword.Final; public class FinalUsage { //記錄final的用法和注意點 /*final修飾變量,變量值不允許被改變 * 經典用法是publi

原创 小白筆記------------------------------------------leetcode(17. Letter Combinations of a Phone Number)

Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could repr

原创 小白筆記-------------------------------leetcode(141. Linked List Cycle)

Given a linked list, determine if it has a cycle in it. 判斷一個鏈表是否有環,參考了網上的方法,設計一個快指針和慢指針,讓它們互相追,有點像火車相遇問題,哈哈,代碼如下,這裏主要

原创 小白筆記------------------------------leetcode(160. Intersection of Two Linked Lists)

Write a program to find the node at which the intersection of two singly linked lists begins. For example, the followin

原创 小白筆記---------------------------------------------leetcode(118. Pascal's Triangle)

Given a non-negative integer numRows, generate the first numRows of Pascal’s triangle. In Pascal’s triangle, each numbe

原创 小白筆記----------------------------------------leetcode(40. Combination Sum II )

Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candid

原创 小白筆記---------------------------------leetcode(101. Symmetric Tree )

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary

原创 小白筆記-------------------------------------------------(leetcode:24. Swap Nodes in Pairs)

Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->3->4, you should return th

原创 小白筆記----------------------------關於秀場直播的說法

相對於老一輩的人來說,直播意味着三俗,不務正業,非常看不起這個行業,其實早在80年代的歌舞廳,更早的時候的搭臺演習,在互聯網技術的帶動下,真人互動的秀的門檻正在降低,以前舞臺表演的是大師級的文化瑰寶,現在舞臺表演的是舞蹈和歌唱,現在網絡直

原创 小白筆記--------------------------------eclipse啓動錯誤,詳見用戶名下的的log文件問題

如果log文件裏面出現,swt invalid thread access問題,這裏mark一個網上搜到的解決方案,創建eclipse快捷方式,在屬性->目標後面添加,-clean,命令,重新啓動eclipse。

原创 小白筆記-----------------------------關於數字取證工具fsrip

成功安裝了fsrip,其中經歷了幾大問題,在此總結: (1)首先,沒有SConstruct文件是不能直接scons搭建fsrip的 (2)其次,相關的基礎環境,其中sleuthkit因爲版本原因與libewf的版本有問題,需要修改其中的e

原创 小白筆記-----------------------------------------leetcode(190. Reverse Bits)

Reverse bits of a given 32 bits unsigned integer. Example: Input: 43261596 Output: 964176192 Explanation: 43261596 re