Leetcode 135. Candy

题目

135. Candy

  • Difficulty: Hard
  • Total Accepted: 87.48K
  • Total Submissions: 330.65K

Leetcode 44. Wildcard Matching

题目

44. Wildcard Matching

  • Difficulty: Hard
  • Total Accepted: 144.11K
  • Total Submissions: 665.07K

Leetcode 65. Valid Number

题目

65. Valid Number

  • Difficulty: Hard
  • Total Accepted: 99.5K
  • Total Submissions: 753.7K

Service Computing 02 - Golang CLI Program - Selpg

设计说明

本程序参照 开发 Linux 命令行实用程序 的设计,以 go 语言替代 C 语言构建。下面我们分版块来讲解实现。完整源代码

包引用

1
2
3
4
5
6
7
8
9
10
11
12
package main

import (
"bufio"
"io"
"log"
"os"
"os/exec"
"strings"

flag "github.com/spf13/pflag"
)

在这一部分,我们声明了程序所要用到的所有包:

  • bufio:用于从标准输入流获取数据和将数据写入到标准输出流
  • io:用于引用 io.EOF 来判断错误是否是文件尾导致
  • log:用于将错误信息写入到标准错误流
  • os:用于打开文件和异常退出时发送状态码
  • os/exec:用于开启 lp 子进程
  • strings:用于划分、拼接字符串
  • github.com/spf13/pflag:用于获取程序运行时用户输入的参数和标识

Leetcode 839. Similar String Groups

题目

839. Similar String Groups

  • Difficulty: Hard
  • Total Accepted: 4.7K
  • Total Submissions: 14K

Leetcode 685. Redundant Connection II

题目

685. Redundant Connection II

  • Difficulty: Hard
  • Total Accepted: 11.2K
  • Total Submissions: 39.7K

Make Full Use of Your VPS Server

【预告】相信很多小伙伴都有一个自己的 VPS 服务器,可是大多数人只是在上面挂载一个 SS/SSR 服务器(这篇里也有讲),然后就对它不管不问了……看看你们 VPS 的 CPU 利用率,这难道不是在暴殄天物嘛!如果你和我一样有 VPS 资源被白白浪费的苦恼,那么这篇文章或许能解决你的问题~【本文长期更新】

Leetcode 124. Binary Tree Maximum Path Sum

题目

124. Binary Tree Maximum Path Sum

  • Difficulty: Hard
  • Total Accepted: 145.3K
  • Total Submissions: 519.8K

Leetcode 4. Median of Two Sorted Arrays

题目

4. Median of Two Sorted Arrays

  • Difficulty: Hard
  • Total Accepted: 301.7K
  • Total Submissions: 1.3M

Service Computing 01 - Private Cloud Service

由于作者水平有限,内容可能存在错漏,若有发现,还望您在评论区指出。 本博客内容仅适用于 VMWare Workstation,Virtual Box 上的操作可能有所不同。

使用 VMWare Workstation 让 PC 提供云桌面服务

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×