程序员的世界, 为程序员服务

2016-06-29
LeetCode-Contains Duplicate III

##题目 ####Contains Duplicate III Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and nums[j] is at most t and the difference between i and j is at most k.

Read More

2016-06-29
LeetCode-Convert Sorted List to Binary Search Tree

##题目 ####Convert Sorted List to Binary Search Tree Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.

Read More

2016-06-29
LeetCode-Copy List with Random Pointer

##题目 ####Copy List with Random Pointer A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list.

Read More

2016-06-29
LeetCode-Count Primes

##题目 ####Count Primes Description: Count the number of prime numbers less than a non-negative number, n click to show more hints. References:How Many Primes Are There? Sieve of Eratosthenes Credits:Special thanks to @mithmatt for adding this problem and creating all test cases.

Read More

2016-06-29
LeetCode-Count and Say

##题目 ####Count and Say The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is read off as "one 2, then one 1" or 1211.Given an integer n, generate th

Read More

2016-06-29
LeetCode-Course Schedule II

##题目 ####Course Schedule II There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1] Given the total number of courses and a list of prerequisite p

Read More

2016-06-29
LeetCode-Course Schedule

##题目 ####Course Schedule There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1] Given the total number of courses and a list of prerequisite pair

Read More

2016-06-29
LeetCode-Decode Ways

##题目 ####Decode Ways A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total number of ways to decode it. For example,Given e

Read More

2016-06-29
LeetCode-Distinct Subsequences

##题目 ####Distinct Subsequences Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the r

Read More

2016-06-29
LeetCode-Divide Two Integers

##题目 ####Divide Two Integers Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT.

Read More

2016-06-29
docker的自我认识(1)

这篇主要介绍docker的自我认识,我将其画成了思维导图的形式,以便后面更好的分析。 自己对docker的认识还只是初步阶段,并且在以后会不断加入新的内容,希望大家多多包涵!😁

Read More

2016-06-29
docker的自我认识(2)

这里主要想写一些自己对docker与虚拟机的大体了解以及一些认识。 自己对docker的认识还只是初步阶段,并且在以后会不断加入新的内容,希望大家多多包涵!😁

Read More

2016-06-29
docker的自我认识(3)

本篇主要是自己对docker镜像的大体了解以及一些认识。 自己对docker的认识还只是初步阶段,并且在以后会不断加入新的内容,希望大家多多包涵!😁

Read More

2016-06-29
docker的自我认识(4)

本篇主要是自己对docker容器的大体了解以及一些认识。 自己对docker的认识还只是初步阶段,并且在以后会不断加入新的内容,希望大家多多包涵!😁

Read More

2016-06-29
docker的自我认识(5)

这几天去扬州参加一个云计算和大数据的国际会议,写到一半的docker认识就被这么落下了,😢。 本篇主要是自己对docker的数据持久化的大体了解以及一些认识。 自己对docker的认识还只是初步阶段,并且在以后会不断加入新的内容,希望大家多多包涵!😁

Read More

2016-06-29
LeetCode-Dungeon Game

##题目 ####Dungeon Game The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially positioned in the top-left room and must fight his way through the dungeon to re

Read More

2016-06-29
LeetCode-Edit Distance

##题目 ####Edit Distance Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operations permitted on a word: a) Insert a characterb) Delete a characterc) Replace a character

Read More

2016-06-29
LeetCode-Evaluate Reverse Polish Notation

##题目 ####Evaluate Reverse Polish Notation Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ["2", "1", "+", "3", "*"] ->

Read More

2016-06-29
LeetCode-Excel Sheet Column Number

##题目 ####Excel Sheet Column Number Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 ####Credits:Special thanks to @ts for adding

Read More

2016-06-29
LeetCode-Excel Sheet Column Title

##题目 ####Excel Sheet Column Title Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB ####Credits:Special thanks to @ifanchu for adding this problem and creating all test case

Read More