- 浏览: 1053890 次
- 性别:
- 来自: 广州
最新评论
-
心往圣城:
微时代-最专业的微信第三方平台。LBS定位导航,微网站,自定义 ...
微信公众平台 /微信公众平台怎么用 -
zhaojiafan:
return ReverseStr1(str.substrin ...
逆转字符串 Write a String Reverser (and use Recursion!) -
zhaojiafan:
public class StringUtils {
p ...
逆转字符串 Write a String Reverser (and use Recursion!)
文章列表
java枚举使用详解
- 博客分类:
- Jave SE
package com.ljq.test;
/**
* 枚举用法详解
*
* @author jiqinlin
*
*/
public class TestEnum {
/**
* 普通枚举
*
* @author jiqinlin
*
*/
public enum ColorEnum {
red, green, yellow, blue;
}
/**
* 枚举像普通的类一样可以添加属性和方法,可以为它添加静态和非静 ...
https://segmentfault.com/a/1190000003819886
给定一个整数序列,找到最长上升子序列(LIS),返回LIS的长度。
样例 给出[5,4,1,2,3],这个LIS是[1,2,3],返回 3
给出[4,2,4,5,3,7],这个LIS是[4,4,5,7],返回 4
挑战 要求时间复杂度为O(n^2) 或者O(nlogn)
说明 最长上升子序列的定义:
最长上升子序列问题是在一个无序的给定序列中找到一个尽可能长的由低到高排列的子序列,这种子序列不一定是连续的或者唯一的。https://en.wikip
Dynamic Programming | Set 29 (Longest Common Substring)
Given two strings ‘X’ and ‘Y’, find the length of the longest common substring.
public class GetCommonSubString {
public static void main(String[] args) {
System.out.println(getCommonSubString("abcdefg","bcd")) ...
SAML SSO helps you maintain control of your identity and
contributions, while giving organizations a centralized and secure way of
controlling access to their resources on GitHub. When you join an organization that uses SAML SSO, you sign in through the organization's IdP and your existing GitHub ...
Docker 完全指南
http://wdxtub.com/2017/05/01/docker-guide/#more
Dynamic Programming | Set 1 (Overlapping Subproblems Property)
Dynamic Programming is an algorithmic paradigm that solves a given complex problem by breaking it into subproblems and stores the results of subproblems to avoid computing the same results again. Following are the two main properties ...
Program for Fibonacci numbers
//Fibonacci Series using Recursion
class fibonacci
{
static int fib(int n)
{
if (n <= 1)
return n;
return fib(n-1) + fib(n-2);
}
public static void main (String args[])
{
int n = 9;
System.o ...
Predefined Character Classes
The Pattern API contains a number of useful predefined character classes, which offer convenient shorthands for commonly used regular expressions:
Construct
Description
.
Any character (may or may not match line terminators)
\d
A digit: [0-9]
\D
A ...
Train Your Accent
- 博客分类:
- English
http://www.trainyouraccent.com/accent.htm
http://www.esl-lab.com/world/worldrd1.htm
http://pandas.pydata.org/
Python Data Analysis Library
人活的是什么?说到底,活的就是一个心情!人之所以活得累,无非是因为影响我们心情的东西太多。阴雨秋风,人情冷暖,四季风景……一切的一切,都可能成为我们心情起伏的祸根,让我们每每纠结其中。 于是在纠结中百转千回,我们的人生便有了“四苦”。 这“四苦”: 一是苦于看不透,看不透人与人之间的纠结与争斗,看不透红尘之中的喧嚣与宁静; 二是苦于舍不得,舍不得曾经的拥有,过去的精彩,舍不得得意之时的虚荣与掌声,舍不得一抹流沙之间滑落: 三是苦于输不起,输不起一时之成败,输不起一段情感之失,输不起人生之中的每一次博弈;
English Book
- 博客分类:
- English
http://www.feedbooks.com/publicdomain
http://worldlibrary.org/Home
手把手教你美股开户 https://xueqiu.com/4474116166/28336417
《手把手教你美股开户——Sogotrade为例(二)》http://xueqiu.com/4474116166/28363545
《手把手教你美股开户——Sogotrade为例(三)》http://xueqiu.com/4474116166/28372214作者:胡柚i链接:https://xueqiu.com/4474116166/28336417来源:雪球著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
One of the advantages of an Object-Oriented programming language is code reuse. There are two ways we can do code reuse either by the vimplementation of inheritance (IS-A relationship), or object composition (HAS-A relationship). Although the compiler and Java virtual machine (JVM) will do a lot of ...
https://www.kancloud.cn/kancloud/data-structure-and-algorithm-notes/72897