06 2020 档案
摘要:一、Algorithm 【leetcode】14-Longest Common Prefix 二、Review Code Health: To Comment or Not to Comment? 三、Tips 【计算机组成原理】01-冯诺依曼体系结构。 四、Share 本周的分享如下:【行成于思】
阅读全文
摘要:本篇博客解析 14-Longest Common Prefix。 一、题目 Write a function to find the longest common prefix string amongst an array of strings. If there is no common pre
阅读全文
摘要:一、Algorithm 【leetcode】009-Palindrome Number 二、Review Linux is ready for the end of time The Y2K bug is back, causing headaches for developers again 三、
阅读全文
摘要:原文请戳:如何超过大多数人——陈皓。 一、需要注意的点 警惕碎片化的知识来源和行为习惯。一来是这种知识不成体系,二来习惯于碎片化会让人丧失系统学习的能力,譬如精读一本书。 不要将大牛在公众平台上的闲扯奉为圭臬。大牛之所以成为大牛,背后做了更多深层次的工作。开阔认知只是第一步,后续还要经过系统学习和实
阅读全文
摘要:本篇博客解析 009-Palindrome Number。 一、题目 Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward
阅读全文
摘要:原文请戳:使用简单的逻辑方法进行独立思考——陈皓。 知乎上有一个不成文之规——先问是不是,再问为什么。在我看来,这颇能反映时下的问题——教育以被动接受为主,多问的孩子很可能不受老师待见——因为有些问题他们也未曾想过,无法回答。久而久之,我们似乎对于书籍、报刊、时评等信息来源养成一种盲目信任,凡是书本
阅读全文
摘要:一、Algorithm 1. 题目 给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。 示例: 1 // 示例 1: 2 输入: 123 3 输出: 321 4 5 // 示例 2: 6 输入: -123 7 输出: -321 8 9 // 示例 3: 10 输入: 120 1
阅读全文
摘要:Word 有拼写检查功能,如果输入错误的英文单词,就会用标红的方式提示“拼写错误”。你有没有想过,这个功能是如何实现的呢?这就涉及到本篇博客的内容——散列表(Hash Table)。 一、散列思想 散列表的英文叫“Hash Table”,也可以称之为“哈希表”或者“Hash 表”。 散列表利用了数组
阅读全文
摘要:本篇博客解析 001-twoSum。 一、题目 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that
阅读全文
摘要:qsort 函数 C 语言编译器函数库自带的排序函数,其时间复杂度为 O(nlog n)。qsort 函数包含在 C 标准库 <stdlib.h> 中。 一、函数声明 1 void qsort(void *base, size_t nitems, size_t size, int (*compar)
阅读全文

浙公网安备 33010602011771号