sync.RWMutex - 并发读写问题

当多个线程访问相同的数据时, 就会出现并发读写问题(reader-writer problems)。线程访问数据有两种访问类型: 读线程 reader: 只进行数据读取 写线程 writer: 进行数据修改

发布于 Golang

无重复字符的最长子串

Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters.

发布于 LeetCode

两数相加

Add Tow Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself.

发布于 LeetCode

两数之和

Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice.

发布于 LeetCode

Golang面向对象特性

“Golang是不是支持面向对象”这本身就是一个值得思考的话题,官方文档给出的答案是“Yes and no”

发布于 Golang

Kubernetes基本介绍与集群部署

Kubernetes集群Kubernetes是一个完备的分布式系统支撑平台,具有完备的集群管理能力,多扩多层次的安全防护和准入机制、多租户应用支撑能力、透明的服务注册和发现机制、內建智能负载均衡器、强大的故障发现和自我修复能力、服务滚动升级和在线扩容能力、可扩展的资源自动调度机制以及多粒度的资源配额管理能力。同时Kubernetes提供完善的管理工具,涵盖了包括开发、部署测试、运维监控在内的各个环节。

发布于 服务容器
1345