首页
学习
活动
专区
工具
TVP
发布

章鱼的慢慢技术路

专栏作者
249
文章
395569
阅读量
49
订阅数
剑指 Offer 03. 数组中重复的数字
在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。
Zoctopus
2022-05-10
1530
开始接学生的毕设课设了
好久没更新博客文章了,因为自己的目标发生了变化,目前主要在自己搭建的博客以写作调身心和微信公众号写一写文章和对职场的感触。
Zoctopus
2021-08-06
1.5K1
07. 重建二叉树
输入某二叉树的前序遍历和中序遍历的结果,请重建该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。
Zoctopus
2021-03-08
3280
剑指 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
2840
剑指 Offer 04.二维数组中的查找
在一个 n * m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个高效的函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。
Zoctopus
2021-03-05
2280
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
3990
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
3310
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
3650
LeetCode-26.Remove Duplicates from Sorted Array | 删除排序数组中的重复项
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
4440
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
2160
LeetCode-20. Valid Parentheses | 有效的括号
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
Zoctopus
2021-02-25
3710
LeetCode-14. Longest Common Prefix | 最长公共前缀
Write a function to find the longest common prefix string amongst an array of strings.
Zoctopus
2021-02-25
3740
LeetCode-9. Palindrome Number | 回文数
Given an integer x, return true if x is palindrome integer.
Zoctopus
2021-02-22
3350
LeetCode-7. Reverse Integer | 整数反转
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
3590
LeetCode-1-Two Sum | 两数之和
简单题。常规解法(解法1),用两个for循环来做,第一个循环从数组nums下标为0开始遍历,第二个循环从数组下标1开始遍历,如果没找到两数之和的target值,就将两个循环的下标加1,继续循环,直到找到目标值,返回结果并退出。
Zoctopus
2021-01-05
2880
Linux操作环境下配置MMIX环境
MMIX用途:高德纳写的《计算机程序设计艺术》,使用 MMIXAL 来编写代码,解释算法。
Zoctopus
2018-12-07
2.4K0
华栖云科技图形图像视音频算法岗面试经验
注:此经验写于工作半个月后,主要为想从事图形图像算法岗的应届毕业生提供一些面试经验参考。
Zoctopus
2018-10-22
9450
LeetCode_832. Flipping an Image_Solution
题目所描述的意思是对每个数组先进行取反,并且对数组中的每个元素进行取反转换,所以一共要执行两个操作。
Zoctopus
2018-07-24
2440
我的编程竞赛生涯
记得第一次接触编程是上高一的时候,那时的我懵懂无知,但对周围充满着好奇,尤其是科技。当时学校的机器人兴趣小组招人,我稀里糊涂的就进去玩。当时我以为是焊板子连线路,谁知道刚一进教室就让我们开始学习C语言,用Turbo C写程序。当时白天上课,中午在实验室内做俯卧撑(因为一道题做错要做一百个俯卧撑,所以当时我中午基本都是在做俯卧撑度过的),晚上写作业兼用纸写程序。
Zoctopus
2018-07-24
4530
Go指南练习_Stringer
源地址 https://tour.go-zh.org/methods/18 一、题目描述 通过让 IPAddr 类型实现 fmt.Stringer 来打印点号分隔的地址。 例如,IPAddr{1, 2
Zoctopus
2018-06-29
5980
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档