[Logu P2472] [SCOI2007] Lizard

Title link: Lizard Title Analysis: With a network stream, let's first analyze the problem: In a \(r*c\) diagram, some numbers are distributed, and others are filled with \(0\). We start from the specified numbers and can move to a number within \(d\) or outside the diagram each time. The original number will be \(-1\) and can't be negative at a ...

Posted by Nicholas Reed on Fri, 19 Jul 2019 10:42:01 -0700

Bi-connected component (point-bi-connected component-edge-bi-connected component)

biconnected component (bcc) Concept: There are two kinds of bi-connected components, one is bi-connected component and the other is edge bi-connected component. If the removal of any node (an edge) in an undirected graph does not change the connectivity of the graph, that is, there is no cut point (bridge), it is called a point (edge) connect ...

Posted by kutatishh on Wed, 17 Jul 2019 14:50:36 -0700

shell script Learning Guide

shell script Learning Guide 2017-03-26 Turn on tracing set -x Turn off tracing set +x This abbreviation is also too bullish i18n: internationalization l10n: localization Regular expression (absolutely something you don't need to forget) Backward Reference awk (again) sed, stream editor sed -n '/Character string/p' file.txt sed -i '/Character ...

Posted by creocast on Mon, 15 Jul 2019 09:55:41 -0700

Blue Bridge Cup-Tricky and Clever Password

Algorithmic Training Tricky and Clever Password Time limit: 2.0s memory limit: 256.0MB Problem Description When we were young, the hero in our story, King Copa, had his personal data not completely hidden.This is unacceptable to him.As a result, he developed a password that was ...

Posted by kidestranged on Sat, 13 Jul 2019 11:23:34 -0700

Java Basic Tutorial - Serialization

serialize Serialization: Serialize, which writes Java objects to IO streams (which can be stored in databases, files, etc.) Deserialize, which reads and restores Java objects from an IO stream. So to understand: serialization is to seal the object, and deserialization is to unblock. Objects contain not only characters, but more non-characters, ...

Posted by Justin98TransAm on Fri, 12 Jul 2019 16:38:04 -0700

RxJava 2.0 tutorial for beginners (5)

If this is not good, you can see the Public Number Series: RxJava 2.0 Tutorial (1) http://mp.weixin.qq.com/s/Nr9kxDR2hRWvfqHUdDF-XA RxJava 2.0 tutorial (2) https://mp.weixin.qq.com/s/S-sSWOcd408BtIC7Z7yN8g RxJava 2.0 Tutorial (3) http://mp.weixin.qq.com/s/5QjSX0OOtWBhjx5oR9DnBg  RxJava 2.0 tutorial (4) https://mp.w ...

Posted by goa103 on Fri, 12 Jul 2019 14:34:50 -0700

ES6: Arrow function

lambda functions are anonymous functions. Before ES6 was released, we usually wrote anonymous functions like this. var selected = allJobs.filter(function (job) { return job.isSelected(); }); ES6 introduces a new grammar for writing functions var selected = allJobs.filter(job => job.isSelected()); Its syntax is very simple: i ...

Posted by dansk on Wed, 10 Jul 2019 12:03:33 -0700

[Reading Notes] C# Advanced Programming Chapter 13 Asynchronous Programming

(1) Importance of asynchronous programming With asynchronous programming, method calls run in the background (usually with the help of threads or tasks) and do not block the calling thread. There are three different asynchronous programming modes: asynchronous mode, Event-based Asynchronous Mode and newly added task-based asynchronous mode (TAP ...

Posted by amyhughes on Wed, 10 Jul 2019 11:30:32 -0700

Concurrent HashMap Source Code Analysis

Preface Hashtable in JDK is a K-V container of thread-safe. Its principle of thread-safe is very simple. It adds synchronized keyword to all methods involved in the operation of the hash table for locking operation. This achieves thread safety, but is very inefficient. //With synchronized acquisition of hashmap locks every time a method enters, ...

Posted by xenoalien on Mon, 08 Jul 2019 17:33:17 -0700

Angular 4 Learning Notes (3): router

Router, or routing, is an important concept in the front end. In order to achieve decoupling, specific addresses and corresponding pages are separated by router. Create a new detail folder in the src/app directory and create a file named gundam-detail.component. import { Component } from '@angular/core'; import { Gundam } from '../../mo ...

Posted by tidalik on Mon, 08 Jul 2019 11:57:01 -0700