## regEx

#### 正则表达式学习总结

Regular Expression

## Peace of Mind

Take it easy.

the Aurora’s Green Fog

—-

## 360 Intern Online Test

#### 1. Replacement

time limit per test2 seconds
memory limit per test256 megabytes
inputstandard input
outputstandard output

Daniel has a string s, consisting of lowercase English letters and period signs (characters ‘.’). Let’s define the operation of replacement as the following sequence of steps: find a substring “..” (two consecutive periods) in string s, of all occurrences of the substring let’s choose the first one, and replace this substring with string “.”. In other words, during the replacement operation, the first two consecutive periods are replaced by one. If string s contains no two consecutive periods, then nothing happens.

## How to install Chrome as root on Kali Linux

Hello Gays,

Today I will show how to install and run google chrome on Kali Linux V2.0 as root.

Step 2. Install google chrome using ‘dpkg -i’ command. If you get error while installing use ‘apt-get install -f’ command.

Step 4. run google chrome without sandbox(for some reason most versions of google chrome are not working with sandbox in root).

Step 5. change the arguments in application icon file for easy access.

Step 6. Use it.

## The Storytelling Animals

Anyway, be  a good storyteller.

## ZoomEye

—-

https://www.zoomeye.org

USA’s Northeast Megalopolis

## Tencent Intern Pre Online Test

1. Gray Code

The gray code is a binary numeral system where two successive values differ in only one bit.

Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0.

For example, given n = 2, return [0,1,3,2]. Its gray code sequence is:

## TST Intern Interview_1

https://github.com/HenryKamg/EMS