原创 docker方式部署ELK
1.拉取原始鏡像: docker pull sebp/elk:660 2.啓動下鏡像方便進入,進行自定義配置修改: docker run -dit --name elk \ -p 5601:5601 \ -p 9200:9200 \ -p
原创 LeetCode-Easy刷題(9) Implement strStr()
Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of hays
原创 LeetCode-Easy刷題(7) Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new lengt
原创 LeetCode-Easy刷題(3) Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 判斷一個整數是否爲迴文(對稱)。這樣做沒有多餘的空間。 public b
原创 LeetCode-Easy刷題(6) Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes o
原创 LeetCode-Easy刷題(16) 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 h
原创 LeetCode-Easy刷題(15) Sqrt(x)
Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. Exam
原创 LeetCode-Easy刷題(8) Remove Element
Given an array and a value, remove all instances of that value in-place and return the new length. Do not allocate ex
原创 LeetCode-Easy刷題(4) Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. 輸入一組字符串的公共最長子串 public static
原创 LeetCode-Easy刷題(13) Plus One
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the i
原创 LeetCode-Easy刷題(12) Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last wor
原创 LeetCode-Easy刷題(17) Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2,
原创 LeetCode-Easy刷題(14) Add Binary
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 二進制字符串
原创 LeetCode-Easy刷題(10) Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it wou
原创 LeetCode-Easy刷題(5) Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid