自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

nagger的博客

A NOVICE TRYING TO LEARN PROGRAMMING & ENGLISH.

  • 博客(12)
  • 收藏
  • 关注

原创 1123. Is It a Complete AVL Tree (30)

1123. Is It a Complete AVL Tree (30)An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they

2017-12-08 17:31:40 217

原创 Longest Common Subsequence.

int lcs(string s1,string s2,int m,int n, vector>&dp){ if(m==0 || n==0) return 0; if(dp[m][n]>0) return dp[m][n]; if(s1[m-1]==s2[n-1]) dp[m]

2017-11-14 18:02:07 136

原创 Relearning in JAVA: 5)Initialization & cleanup

Chapter 3.

2017-11-01 23:31:54 212

原创 MEMO of Linux and git command lines

new folder::: mkdir ** move::: mv from todelete::: rm **git:git add **git commit -m "***"git statusgit loggit reset --hard HEAD^git checkout -- **     //recover file to stage(if

2017-09-30 16:47:57 153

原创 const in C++

Contents below mainly come fromhereconsts in this declaration:// v───v───v───v───v───v───v───v───v───v───v───v─┬┐// ││// v──#1 v─#2

2017-09-25 18:44:43 210

原创 Producer & Consumer ---- a practice in concurrent simulation

import java.util.Arrays;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.TimeUnit;class Write implements Runnable { private WriteA

2017-08-10 09:50:56 185

原创 Crafts Store ---- a concurrent simulation in Java

This is actually a practice in class. But I am using a different way to solve this problem. It doesn't look bad.import java.util.Arrays;import java.util.Random;import java.util.concurrent.*;

2017-08-10 09:47:53 185

原创 1010. Radix (25)

Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is a binary number.Now for any pair of positive

2017-07-24 13:21:03 129

原创 SUMMARY OF BASIC ALGORITHMS

TO REVIEW BASIC ALGORITHMS, I DECIDE TO SUMMARIZE THEM BY MYSELF. void insertion_sort(vector<int>&v){ for (int i = 0; i < v.size(); ++i) { int tmp = v[i], j = i; while (j >...

2017-07-19 11:34:56 251

原创 1060. Are They Equal (25)

1060. Are They Equal (25)If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with simple chopping. No

2017-07-18 20:05:54 126

原创 FOR 100 PEOPLE, EVERYONE OWNS 100 YUAN. EVERYONE GIVES ANOTHER RANDOM PERSON 1 YUAN EVERY MINUTE.

FOR 100 PEOPLE, EVERYONE OWNS 100 YUAN. EVERYONE GIVES ANOTHER RANDOM PERSON 1 YUAN EVERY MINUTE. THEN WHAT HAPPENS.Try to simulate this with matplotlib in Python.----2017.7.16

2017-07-16 20:29:01 264

原创 Greedy Snake In Java ----My First Project

Github Address: https://github.com/nagger28443/Projects_did_while_learning/tree/master/GreedySnake Exciting! Just got my first project done. This little project, named as the title said ----"Greedy

2017-07-16 11:21:09 315

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除