自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(113)
  • 收藏
  • 关注

原创 时隔两年没有写博客了,唠叨两句

工作后就再没写过博客了,以后有时间还是会尽量更新,这两年接触的东西多而杂,但是不精,看看以前的博客,还是想能够回归初心,重新开始

2020-09-26 12:13:59 151

原创 小白笔记--------------------------------eclipse启动错误,详见用户名下的的log文件问题

如果log文件里面出现,swt invalid thread access问题,这里mark一个网上搜到的解决方案,创建eclipse快捷方式,在属性->目标后面添加,-clean,命令,重新启动eclipse。...

2018-08-10 09:05:06 1599

原创 小白笔记------------------------------------------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 represent.A mapping of digit to letters (just like on the telephone buttons) is giv...

2018-07-21 17:09:21 373

原创 小白笔记-------------------------------------------------(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 the list as 2->1->4->3.Note:Your algorithm should use only ...

2018-07-16 11:23:10 232

原创 小白笔记-----------------------------------------leetcode(190. Reverse Bits)

Reverse bits of a given 32 bits unsigned integer.Example:Input: 43261596 Output: 964176192 Explanation: 43261596 represented in binary as 00000010100101000001111010011100, return ...

2018-07-07 21:46:24 187

原创 小白笔记-----------------------------------------------------leetcode(257. Binary Tree Paths)

Given a binary tree, return all root-to-leaf paths.Note: A leaf is a node with no children.Example:Input:1 / \ 2 3 \ 5Output: [“1->2->5”, “1->3”]Explanation: All roo...

2018-06-24 15:16:14 166

原创 小白笔记------------------------------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 following two linked lists:A: a1 → a2 ↘ ...

2018-06-08 20:43:26 228

原创 小白笔记---------------------------------------------leetcode(118. Pascal's Triangle)

Given a non-negative integer numRows, generate the first numRows of Pascal’s triangle.In Pascal’s triangle, each number is the sum of the two numbers directly above it.Example:Input: 5 Output: ...

2018-05-09 22:53:41 199

原创 小白笔记-----------------leetcode(111. Minimum Depth of Binary Tree && 110. Balanced Binary Tree)

110: Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as:a binary tree in which the depth of the two subtrees of every node never...

2018-05-07 14:47:03 200

原创 小白笔记-------------------------------leetcode(141. Linked List Cycle)

Given a linked list, determine if it has a cycle in it. 判断一个链表是否有环,参考了网上的方法,设计一个快指针和慢指针,让它们互相追,有点像火车相遇问题,哈哈,代码如下,这里主要容易出现空指针问题,需要注意循环条件,另外将要入职华为了,真的开始做程序员,保持初心吧,但愿coding会一直是我的乐趣,而不是变成工作的烦恼。/** ...

2018-04-11 10:55:42 219

原创 小白笔记-----------------------------关于数字取证工具fsrip

成功安装了fsrip,其中经历了几大问题,在此总结:(1)首先,没有SConstruct文件是不能直接scons搭建fsrip的(2)其次,相关的基础环境,其中sleuthkit因为版本原因与libewf的版本有问题,需要修改其中的ewf.cpp文件(afflib ,libewf)(3)对基础开发环境的搜索,需要自己写Sconstruct 脚本 。。。总之,安装一个小众的软件真的很

2018-02-04 17:08:35 414 1

原创 小白笔记----------------------------关于秀场直播的说法

相对于老一辈的人来说,直播意味着三俗,不务正业,非常看不起这个行业,其实早在80年代的歌舞厅,更早的时候的搭台演习,在互联网技术的带动下,真人互动的秀的门槛正在降低,以前舞台表演的是大师级的文化瑰宝,现在舞台表演的是舞蹈和歌唱,现在网络直播的是生活,表演的内容正在越来越生活化,表演的形式也在变化,在我看来不管内容如何变,形式如何变,人们对于娱乐的需求没有变,直播不是凭空出现的洪水猛兽,而是实实在在

2018-01-08 22:22:10 332

原创 小白笔记-----------------------------------linux小tips

关于"Source Distribution"和"BinaryDistribution " 一般开放原代码软件都会有两个版本发布:Source  Distribution    和   Binary  Distribution 前者是源代码版,你需要自己编译成可执行软件。后者是可执行版,直接可以拿来用的,他已经给你编译好的版本)

2017-12-27 10:22:46 272

原创 小白笔记-------------------------------------leetcode(136. Single Number )

iven an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using extra

2017-12-04 21:03:01 212

原创 小白笔记----------------------------------------------leetcode(107. Binary Tree Level Order Traversal I)

Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example:Given binary tree [3,9,20,null,null,15,

2017-12-03 20:58:09 242

原创 小白笔记---------------------------------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 tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \3 4 4 3B

2017-11-30 16:28:26 233

原创 小白笔记---------------------------------leetcode(67. Add Binary )

Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".本来这道题,我想直接用long的parseInt方法,然后发现字符串太长了超出了Long的范围,之后看了大家的答题经验之后,发现应该一位一位地处理,模仿

2017-11-25 14:46:45 258

原创 小白笔记---------------------------------leetcode(70. Climbing Stairs )

You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?Note: Given n will be a positive

2017-11-24 21:43:32 321

原创 小白笔记---------------------------------leetcode(48. Rotate Image )

You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:You have to rotate the image in-place, which means you have to modify the input 2D matrix d

2017-11-23 21:14:08 257

原创 小白笔记----------------------------------------leetcode(40. Combination Sum II )

Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inC where the candidate numbers sums to T.Each number in C may only be used once in the combinatio

2017-11-22 17:19:24 219

原创 小白笔记----------------------------------------leetcode(39. Combination Sum )

Given a set of candidate numbers (C)(without duplicates) and a target number (T), find all unique combinations inC where the candidate numbers sums to T.The same repeated number may be chosen

2017-11-22 11:25:46 308

原创 小白笔记-------------------------------leetcode(11. Container With Most Water )

Given n non-negative integers a1, a2, ...,an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of linei is at (i, ai) and (i, 0). Find

2017-11-09 11:27:01 210

原创 小白笔记----------------------------安全笔记

一、如何应对SYN flood攻击:(网络层DDos)SYN/Cookies 算法,为每一个IP分配一个“Cookie”,并统计每个IP地址的访问频率。如果短时间内收到大量的来自同一个IP地址的数据包,则认为收到了攻击,之后来自这个IP的包将被丢弃。一些产品会串联或者并联到网络出口处,结合DDos攻击的特征,对流量进行清洗。二、应用层DDos:CC攻击原理:

2017-09-25 21:13:51 320

原创 小白笔记--------------------------leetcode 34. Search for a Range

Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the ta

2017-08-18 11:06:01 248

原创 小白笔记----------------------------------------leetcode 3. Longest Substring Without Repeating Characte

Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", with

2017-08-08 10:38:49 235

原创 小白笔记----------------------------------leetcode(22. Generate Parentheses )

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.这道算法涉及到什么卡特兰数,我们把他考虑成一个树的剪枝问题,确定剪枝的条件,就是剩余的左括号树一定大于右括号数。本文算法,采纳自这篇大牛博客,详细解释,请跳转http://blo

2017-08-03 11:09:24 257

原创 小白笔记--------------------leetcode27. Remove Element

public class Solution { public int removeElement(int[] nums, int val) { int count = 0; int result = 0; int s = nums.length; int j = 0; for(int i = 0 ; i < n

2017-07-31 18:14:46 236

原创 小白笔记-----------------------------leetcode53. Maximum Subarray

public class Solution { public int maxSubArray(int[] nums) { int count = 0; int max = nums[0]; for(int i = 0;i < nums.length;i++){ count = nums[i];

2017-07-30 18:21:40 237

原创 小白笔记----------------leetcode 58. Length of Last Word

public class Solution { public int lengthOfLastWord(String s) { char[] a = s.toCharArray(); int count = 0; for(int i = a.length-1 ; i > -1;i--){ if(a[i] != ' ')

2017-07-30 16:38:20 248

原创 小白笔记-----------------------Metasploit (from tools)整理

1、msf更新命令:./msfupdate2、nmap扫描命令:nmap命令3、msf内置扫描命令:search portscan之后调用show options 显示设置参数4、msf SMB获取系统信息命令:use auxiliary/scanner/smb/smb_version5、msf服务识别命令:ssh:    use auxiliary

2017-07-27 11:46:45 595

原创 小白笔记----------------------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 they are structurally identical and the nodes have the same value.考虑到每个叶子节

2017-07-13 23:59:03 245

原创 小白笔记---------------------(算法总结)(1)

小白笔记———————(算法总结)(1)二分搜索算法解决问题:从数组中查找已知存在的数的位置前提条件:一个已经排好序的整型数组一般解决方式:遍历数组,找到第一次出现的要找的数,返回它的位置使用价值:除非特别指定用二分搜索算法,大部分情况下都能用一层循环解决求众数解决问题:求整型数组中出现次数最多的数一般解决方法:用一个数组记录每个数出现的次数,遍历这个数组找到最大值,返回原数组该位置的

2017-06-20 17:10:47 360

原创 小白笔记------------------------关于系统盘莫名其妙只剩几十兆或者几百兆

首先这是分区问题,并不是u盘坏了,或者其他问题。插入U盘,打开dos,输入diskpart找到你的u盘,select disk *然后clean 最后在磁盘管理处重新添加新加卷,搞定,问题解决.

2017-05-22 10:43:44 785

原创 小白笔记--------------------------leetcode(20. Valid Parentheses )

Given a string containing just the characters '(', ')','{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all valid b

2017-04-06 11:28:20 261

转载 小白笔记-------------------解读wireshark数据包

Wireshark可以将从网络捕获到的二进制数据按照不同的协议包结构规范,翻译解释为人们可以读懂的英文信息,并显示在主界面的中部窗格中。为了帮助 大家在网络安全与管理的数据分析中,迅速理解Wireshark显示的捕获数据帧内的英文信息,特做如下中文的翻译解释。本页内容请参看教材中 Wireshark的界面图1.19,图1.25,图3.16,图7.11等,以及以太帧结构图3.2,IP包结构图4.

2017-03-28 09:44:22 1128

原创 小白笔记---------------------------------------java关键词final

package learning.java.keyword.Final;public class FinalUsage { //记录final的用法和注意点 /*final修饰变量,变量值不允许被改变 * 经典用法是public static final MAX = 100,作为定义一个常量来使用,常量名通常大写 */ final int s = 1; //----------

2017-03-02 17:18:13 302

原创 小白笔记--------------------------java关键词static

package learning.java.keyword.Static;public class StaticUsage { //记录static的用法 /*声明为static的方法有如下限制 * 它们仅能调用其他的static 方法。 * 它们只能访问static数据。 * 它们不能以任何方式引用this 或super。 * 因为static方法独立于任何实例,因此

2017-03-01 20:41:47 307

转载 小白笔记------------------------------public、protected、private、default区别

2017-03-01 20:05:09 302

原创 小白笔记-------------------java关键词abstract

package learning.java.keyword.Abstract1;public class AbstractUsage { //总结abstract的用法和注意点 //--------------------------------------------------- /* * abstract顾名思义是抽象的意思 ,可以用来修饰类、方法。 * 更多地用在父类中声

2017-03-01 17:44:45 306

原创 小白笔记---------------------利用kali破解wifi

1、安装USB无线网卡1) VMWare下的配置打开VMWare,在标签页中找到虚拟机(VM),在可移动设备下找到USB 无线网卡,然后选择连接。注意,将无线网卡连接到虚拟机,会在本机断开无线网络连接。之后在虚拟机的右下方找到usb设备,右键,选择连接。现在检查是否网卡挂接成功,再次输入airmon-ng命令,结果如下:配置成功。 2、运用airmo

2017-02-27 16:09:25 1514

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除