- 博客(8)
- 资源 (4)
- 收藏
- 关注
原创 Git教程及常用命令
1. Git 简介Git 的诞生: Linus(Linux之父)花了两周时间自己用C写了一个分布式版本控制系统,这就是Git! 一个月之内,Linux系统的源码已经由Git管理了!几个概念: 工作区、版本库、暂存区 如下图所示: 1. 图中左侧为工作区,右侧为版本库。在版本库中标记为index的区域是暂存区(stage,index),标记为mas...
2018-07-10 18:10:57 555
原创 【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 326
原创 【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 426
原创 【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 703
原创 【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 691
原创 【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 531
原创 【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 504
原创 【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 237
C语言---经典编程900例---------------------
2010-05-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人