自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小怪孩的成长之路

Talk is cheap. Show me the code.

  • 博客(87)
  • 资源 (4)
  • 收藏
  • 关注

原创 Git教程及常用命令

1. Git 简介Git 的诞生: Linus(Linux之父)花了两周时间自己用C写了一个分布式版本控制系统,这就是Git! 一个月之内,Linux系统的源码已经由Git管理了!几个概念: 工作区、版本库、暂存区 如下图所示: 1. 图中左侧为工作区,右侧为版本库。在版本库中标记为index的区域是暂存区(stage,index),标记为mas...

2018-07-10 18:10:57 540

原创 【LeetCode】36. Valid Sudoku - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:Each row must contain the digits 1-9 wit...

2018-12-17 22:05:48 504

原创 【LeetCode】35. Search Insert Position - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You m...

2018-12-16 12:11:13 671

原创 【LeetCode】34. Find First and Last Position of Element in Sorted Array - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’s runtime complexity mu...

2018-12-16 11:52:33 782

原创 【LeetCode】33. Search in Rotated Sorted Array - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).You are giv...

2018-12-09 21:54:55 329

原创 【LeetCode】32. Longest Valid Parentheses - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.Example 1:Input: “(()”Ou...

2018-12-09 14:38:00 572

原创 【LeetCode】31. Next Permutation - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it mus...

2018-12-04 08:22:04 475

原创 【LeetCode】30. Substring with Concatenation of All Words - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation o...

2018-12-03 22:21:04 580

原创 【LeetCode】29. Divide Two Integers - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.Return the quotient after dividing dividen...

2018-11-28 22:58:40 992

原创 【LeetCode】28. Implement strStr() - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Implement strStr().Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Example 1:Input: haystack = “hell...

2018-11-26 23:15:45 468

原创 【LeetCode】27. Remove Element - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given an array nums and a value val, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you m...

2018-11-24 15:02:08 261

原创 【LeetCode】26. Remove Duplicates from Sorted Array - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for ano...

2018-11-24 12:34:27 476

原创 【LeetCode】25. Reverse Nodes in k-Group - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.k is a positive integer and is less than or equal to the lengt...

2018-11-24 10:23:36 655

原创 【LeetCode】24. Swap Nodes in Pairs - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: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....

2018-11-24 10:15:45 556

原创 【LeetCode】23. Merge k Sorted Lists - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Example:Input:[ 1->4->5, 1->3->4, 2->6]...

2018-11-23 22:20:55 446

原创 【LeetCode】22. Generate Parentheses - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ “((()))...

2018-11-23 08:24:25 388

原创 【LeetCode】21. Merge Two Sorted Lists - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1...

2018-11-22 07:50:08 428

原创 【LeetCode】20. Valid Parentheses - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:Open bracke...

2018-11-22 07:44:02 775

原创 【LeetCode】19. Remove Nth Node From End of List - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given a linked list, remove the n-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5, and n = 2.After rem...

2018-11-21 08:22:05 334

原创 【LeetCode】18. 4Sum - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets...

2018-11-20 08:07:05 494

原创 【LeetCode】17. Letter Combinations of a Phone Number - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: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 (jus...

2018-11-20 07:24:35 367

原创 【LeetCode】16. 3Sum Closest - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integer...

2018-11-18 15:14:32 327

原创 【LeetCode】15. 3Sum - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero...

2018-11-18 12:51:19 376

原创 【LeetCode】14. Longest Common Prefix - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string "".Example 1:Inpu...

2018-11-18 11:40:39 417

原创 【LeetCode】13. Roman to Integer - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol    ValueI        1V        5X        10L        50C        100D...

2018-11-18 11:27:02 753

原创 【LeetCode】12. Integer to Roman - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol    ValueI        1V        5X        10L        50C        100D...

2018-11-18 11:07:16 267

原创 【LeetCode】11. Container With Most Water - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given n non-negative integers a[1], a[2], …, a[n] , where each represents a point at coordinate (i, a[i]). n vertical lines are drawn such that the two endpoint...

2018-11-15 08:23:41 202

原创 【LeetCode】10. Regular Expression Matching - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.‘.’ Matches any single character.‘*’ Matches ...

2018-11-14 08:30:31 305

原创 【LeetCode】9. Palindrome Number - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Example 1:Input: 121Output: trueExampl...

2018-11-12 23:23:17 396

原创 【LeetCode】8. String to Integer (atoi) - Java实现

文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace char...

2018-11-11 18:08:50 369

原创 【工具】iTerm2 实现类似 SecureCRT 克隆会话(clone session)配置

文章目录1. 配置iTerm22. 修改SSH config3. 使用说明由于开发工作中经常需要通过SSH连接远程服务器,并且登录公司的服务器需要先经过一个跳板机(relay机器)来登录,每次登录都要输入密码非常麻烦。在Mac的iTerm2中可以配置类似于SecureCRT那样的 clone session的功能,(即只需要第一次登录的时候需要输入密码,后续打开多个tab都不需要输入密码)。...

2018-10-15 11:24:30 4691

原创 【工具】Mac 上 iTerm2 的配色方案

文章目录1. 修改.bash_profile文件2. 设置喜欢的配色方案由于Mac上自带的命令行不太好用,推荐使用iTerm2(号称Mac上最好用的终端工具)安装过程就不介绍了,主要介绍一下配色方案。安装完之后默认是没有配色的,如下图所示:1. 修改.bash_profile文件在你的~/.bash_profile文件中新增如下代码:#enables colorin the term...

2018-10-15 11:21:17 7798

原创 【LeetCode】7. Reverse Integer - Java实现

1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given a 32-bit signed integer, reverse digits of an integer.Example 1: Input: 123 Output: 321Example 2: Input: -123 Output: -321...

2018-07-29 13:57:06 296

原创 【LeetCode】6. ZigZag Conversion - Java实现

1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed fo...

2018-07-28 21:38:10 421

原创 【LeetCode】5. Longest Palindromic Substring - Java实现

1. 题目描述:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example: Input: “babad” Output: “bab” Note: “aba” is also a va...

2018-07-28 19:09:36 676

原创 【LeetCode】4. Median of Two Sorted Arrays - Java实现

1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time co...

2018-07-28 19:04:05 678

原创 【LeetCode】3. Longest Substring Without Repeating Characters - Java实现

1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc...

2018-07-24 22:25:13 497

原创 【LeetCode】2. Add Two Numbers - Java实现

1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a s...

2018-07-13 18:23:28 499

原创 【LeetCode】1. Two Sum - Java实现

1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo...

2018-07-13 18:21:33 222

原创 【人月神话】第四章:贵族专制、民主政治和系统设计

在软件系统的设计中,概念完整性是最重要的考虑因素。 为了反映一系列连贯的设计思路,宁可省略一些不规则的特性和改进,也不提倡独立和无法整合的系统,哪怕他它其实包含着许多很好的设计。 然而在大多数系统体现出来的概念差异和不一致性是非常大的,这通常是由于设计被划分成了由若干人完成的若干任务。

2015-11-29 12:26:30 1557

用于转换格式的YUV数据

这里是用于YUV转RGB要用到的一张图片的YUV数据

2013-03-14

C语言---经典编程900例---------------------

C语言---经典编程900例---------------------C语言---经典编程900例---------------------C语言---经典编程900例---------------------C语言---经典编程900例---------------------C语言---经典编程900例---------------------C语言---经典编程900例---------------------C语言---经典编程900例---------------------C语言---经典编程900例---------------------

2010-05-07

操作系统答案 操作系统答案操作系统答案

操作系统答案操作系统答案操作系统答案操作系统答案操作系统答案操作系统答案操作系统答案操作系统答案操作系统答案

2010-04-19

c++语言程序设计 清华大学

清华大学 C++ 课件 很权威的 很好用的 适合初学者

2010-02-07

空空如也

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

TA关注的人

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