腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
腾讯云架构师技术同盟
文章/答案/技术大牛
搜索
搜索
关闭
发布
首页
学习
活动
专区
工具
TVP
腾讯云架构师技术同盟
返回腾讯云官网
章鱼的慢慢技术路
专栏成员
举报
248
文章
415170
阅读量
49
订阅数
订阅专栏
申请加入专栏
全部文章(248)
其他(64)
编程算法(58)
linux(22)
存储(19)
go(16)
游戏(16)
python(15)
unity(12)
opengl(8)
数据结构(8)
windows(7)
人工智能(6)
java(5)
c++(5)
git(5)
shell(5)
https(5)
photoshop(5)
函数(5)
c 语言(4)
github(4)
二叉树(4)
bash(3)
ubuntu(3)
图像处理(3)
grep(3)
安全(3)
工具(3)
单片机(2)
数据库(2)
sql(2)
unix(2)
http(2)
tcp/ip(2)
udp(2)
机器人(2)
nat(2)
algorithm(2)
for循环(2)
int(2)
shift(2)
ios(1)
node.js(1)
html(1)
汇编语言(1)
嵌入式(1)
access(1)
ide(1)
nginx(1)
容器镜像服务(1)
spring(1)
文件存储(1)
消息队列 CMQ 版(1)
腾讯云测试服务(1)
express(1)
容器(1)
网络安全(1)
ssh(1)
正则表达式(1)
openstack(1)
gcc(1)
socket编程(1)
数据处理(1)
bezier(1)
case(1)
graphics(1)
interface(1)
leetcode(1)
map(1)
max(1)
ode(1)
row(1)
scale(1)
sort(1)
vector(1)
void(1)
遍历(1)
编译(1)
编译器(1)
脚本(1)
快捷键(1)
面试(1)
排序(1)
软件(1)
数据类型(1)
拖拽(1)
异常(1)
指针(1)
字符串(1)
搜索文章
搜索
搜索
关闭
剑指 Offer 03. 数组中重复的数字
编程算法
在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。
Zoctopus
2022-05-10
184
0
Go语法题-常见语法题一
case
interface
编译
golang中有规定, switch type 的 case T1 ,类型列表只有⼀个,那么 v := m.(type) 中的 v 的类型就是T1类型。
Zoctopus
2021-10-09
444
0
两天时间兼职运维从零搭建一套分布式文件云存储系统的收获
容器镜像服务
容器
nginx
tcp/ip
消息队列 CMQ 版
部门的小leaderC想让我熟悉整个业务,知道来龙去脉,让我从零开始搭建一套环境,也方便开发人员直接在上面进行测试,所以从这周一开始,我的工作就来了。
Zoctopus
2021-08-31
588
0
07. 重建二叉树
二叉树
node.js
编程算法
输入某二叉树的前序遍历和中序遍历的结果,请重建该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。
Zoctopus
2021-03-08
357
0
剑指 Offer 06. 从尾到头打印链表
编程算法
题目 力扣-剑指 Offer 05. 替换空格 请实现一个函数,把字符串 s 中的每个空格替换成"%20"。 示例 1: 输入:s = "We are happy." 输出:"We%20are%20happy." 限制: 0 <= s 的长度 <= 10000 题解 该题难度为简单。 解法一:两个for循环 1,先声明两个整型数组; 2,第一个for循环从头到尾记录链表的每个节点的值; 3,第二个for循环逆序记录链表的每个节点的值。 //Go /** * Definition for singly-
Zoctopus
2021-03-07
310
0
剑指 Offer 05. 替换空格
leetcode
遍历
函数
字符串
题目 力扣-剑指 Offer 05. 替换空格 请实现一个函数,把字符串 s 中的每个空格替换成"%20"。 示例 1: 输入:s = "We are happy." 输出:"We%20are%20happy." 限制: 0 <= s 的长度 <= 10000 题解 该题难度为简单。 解法一:使用strings.Replace //Go func replaceSpace(s string) string { return strings.Replace(s, " ", "%20", -1) }
Zoctopus
2021-03-05
275
0
剑指 Offer 04.二维数组中的查找
编程算法
在一个 n * m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个高效的函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。
Zoctopus
2021-03-05
257
0
LeetCode-38. Count and Say | 外观数列
编程算法
The count-and-say sequence is a sequence of digit strings defined by the recursive formula:
Zoctopus
2021-02-25
424
0
LeetCode-35. Search Insert Position | 搜索插入位置
编程算法
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
Zoctopus
2021-02-25
357
0
LeetCode-28. Implement strStr() | 实现 strStr()
编程算法
Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
Zoctopus
2021-02-25
409
0
LeetCode-26.Remove Duplicates from Sorted Array | 删除排序数组中的重复项
linux
编程算法
Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length.
Zoctopus
2021-02-25
478
0
LeetCode-21.Merge Two Sorted Lists | 合并两个有序链表
编程算法
Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists.
Zoctopus
2021-02-25
250
0
LeetCode-20. Valid Parentheses | 有效的括号
linux
编程算法
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
Zoctopus
2021-02-25
398
0
LeetCode-13. Roman to Integer | 罗马数字转整数
github
map
ode
题目 LeetCode 力扣 题解 先维护一个map,用于建立罗马数字和整数的关系,接着挨个破译即可。 //Go func romanToInt(s string) int { var charToIntMap = make(map[byte]int, 8) charToIntMap['I'] = 1 charToIntMap['V'] = 5 charToIntMap['X'] = 10 charToIntMap['L'] = 50 charToIntMa
Zoctopus
2021-02-25
226
0
LeetCode-14. Longest Common Prefix | 最长公共前缀
编程算法
Write a function to find the longest common prefix string amongst an array of strings.
Zoctopus
2021-02-25
407
0
LeetCode-9. Palindrome Number | 回文数
编程算法
Given an integer x, return true if x is palindrome integer.
Zoctopus
2021-02-22
352
0
LeetCode-7. Reverse Integer | 整数反转
go
编程算法
Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 - 1], then return 0.
Zoctopus
2021-02-05
384
0
LeetCode-1-Two Sum | 两数之和
编程算法
简单题。常规解法(解法1),用两个for循环来做,第一个循环从数组nums下标为0开始遍历,第二个循环从数组下标1开始遍历,如果没找到两数之和的target值,就将两个循环的下标加1,继续循环,直到找到目标值,返回结果并退出。
Zoctopus
2021-01-05
312
0
数学趣题_父亲分羊
github
algorithm
有个老父亲,有17头羊,临终前把三个儿子叫来。分给大儿子一半的羊,二儿子1/3的羊,小儿子1/9的羊。三个儿子不知道怎么分,只好请教邻居。聪明的邻居借给了他们一头羊,这样总共就有18头。大儿子领走一半9头羊,二儿子领走1/3共6头羊,小儿子领走1/9,也就是2头羊。邻居最后把借的羊牵回去了。我们的问题是,满足这样条件的数字还有哪些?即遗产有n头羊,大儿子分得1/x, 二儿子分得1/y, 小儿子分得1/z,邻居借给一头羊。请编程找出这些满足条件的(n, x, y, z)。
Zoctopus
2018-12-27
544
0
从零到一搭建出一个定时删除文件夹框架的收获
文件存储
框架的功能:定时读取指定路径下的配置文件,扫描配置文件中的节点,然后拼出一个新的路径,在该路径下判断任务文件夹是否该删除,如果该路径下的任务文件夹为0,同时删除该路径。
Zoctopus
2018-12-27
666
0
点击加载更多
社区活动
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·干货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档