本文深入讲解了 Manacher(马拉车)算法,这是一种用于寻找字符串中最长回文子串的高效线性算法。文章详细剖析了算法的核心思想、辅助数组的含义以及边界条件的处理,并提供了 Python 代码示例,帮助读者快速理解并解决 LeetCode 中的回文串问题。
📅 2020-01-31
【leetcode】2. Add Two Numbers两数相加
本文详细记录了 LeetCode 第 2 题“两数相加”的解题过程。首先介绍了题目要求,然后分享了初次使用递归提取数值并相加的实现方法。最后,通过模拟竖式加法优化了算法,提升了性能,并提供了完整的 Python 代码实现和运行结果截图。
📅 2020-01-16
docker容器的自定义修改并重新构建镜像
本文介绍如何解决Docker容器重启后环境配置丢失的问题。通过安装pylint和更新pip等自定义修改,利用docker commit命令将容器状态保存为新的镜像。这种方法实现了开发环境的持久化,避免了重复安装VS Code Server和依赖包,有效提升了生产力。
📅 2020-01-02
Ubutnu使用问题记录贴
本文记录了Ubuntu系统使用过程中遇到的几个典型问题及修复方案。主要涵盖了软件安装依赖关系冲突、bash命令执行报错、用户sudo权限缺失以及系统设置图标丢失的解决方法,为Linux用户提供实用的故障排查参考。
📅 2019-12-20
ubuntu安装后需要做的事情

1. 安装chrome


sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -

sudo apt update

sudo apt install google-chrome-stable

19年12月18日:现在觉得火狐也不错

2. 安装Shadowsocks

不然美化界面太慢了

3. 美化界面参考链接

安装工具


sudo apt-get update

sudo apt-get install gnome-tweak-tool

sudo apt-get install gnome-shell-extensions

sudo apt-get install  gnome-shell-extension-dashtodock

2018-12-24 14-21-29 的屏幕截图.png

3. 安装搜狗输入法ubuntu 18.04 LTS 安装搜狗输入法

实在是不喜欢默认输入法

4. 换阿里源

1. 先备份源


sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2. 删除原文件


sudo rm -f /etc/apt/sources.list

3. 新建源文件


sudo vi /etc/apt/sources.list

4. 添加内容


deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

2019-03-28T03:03:08.png

📅 2019-12-18
本文旨在理性探讨人工智能的现状与本质。文章区分了弱人工智能与强人工智能的概念,分析了AI在部分行业的应用及受益情况,并从原理角度解释了近年来AI兴起的原因。同时,文章也指出了AI并非全能,客观分析了其在特定领域面临的挑战与受挫之处,帮助读者褪去对技术的过度神话,建立对AI的客观认知。
📅 2019-12-09
本文介绍了无监督学习的基本概念。无监督学习允许我们在不知道结果的情况下从数据中获得结构,通过聚类分析变量之间的关系。文章阐述了机器如何在无反馈的情况下主动分析数据分类。
📅 2019-12-09