leetcode with python:459. Repeated Substring Pattern

题目: Given a string s, check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. 给定一字串,判断其是否由一重複字串组成 ex:

leetcode with python:31. Next Permutation

题目: A permutation of an array of integers is an arrangement of its members into a sequence or linear order. For example, for arr = [1,2,3], the following are considered permutations of arr: [1,2,3]

PowerShell 使用 PSReadLine 模组

PowerShell的PSReadLine模组可用来辅助PowerShell来做到类似zsh的效果:根据命令列历史提示自动完成,以及可用方向键在选单式介面选择候选命令/路径的功能。

leetcode with python:33. Search in Rotated Sorted Array

题目: There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (1 = k nums.length)

leetcode with python:34. Find First and Last Position of Ele

题目: Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1]. You must wri

nodjs 使用 fabric 套件 在 centos7 下 error: /lib64/libstdc++.so.6:

****error**: /lib64/libstdc++.so.6: version `CXXABI_1.3.9'** 除网上提供 更换 libstdc++新版 https://zhuanlan.zhihu.com/p/142718039 http://ftp.gnu.org/gnu/gcc 1.3.9使用 gcc-5.5.0.tar.bz2 ( 另一

java Generics泛型介绍

解释:让类别定义中所使用的型别能够当成参数(变数)来使用的功能。 直到建立物件前,型别都会处于抽象的状态,直到建立成物件时,才会指定具体的型别

聊天软体实作(3): 讯息怎么推送-心跳包

话说 html5 之后,Web 端要及时通讯多了 SSE(Server-Sent-Event) 和 WebSocket。 SSE简单来说就是长轮询(Long-polling)的进阶版,透过javaScript API处理,只能由Server单向发

基本Array练习 - CodeWars Training JS #4: Basic data types--Array

在这篇我遇到很多错误讯息,也学到 arr.length - 1 的写法跟意思 题目: 分别回传下面五组function 1. getLength(arr) 2. getFirst(arr) 3. getLast(arr) 4. pushElement(arr) 5. p

8套最佳DVD转档程式

一种将DVD或BD(蓝光)光碟转换为档(通常是ISO格式)的程式,当您想要备份电影以进行保管或将光碟转换为档以便在手机或平板电脑上播放时,此功能非

Chrome 浏览器扩充套件推荐 | 『Custom Cursor for Chrome』轻鬆自定义鼠标

这篇文章将会和大家介绍一个Chrome的扩充套件:「Custom Cursor for Chrome」,可以自製属于自己的自定义鼠标,也可以挑选各式各样的鼠标图案。 简介 「Cust