上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: 算法珠玑——最长回文子串(5) 三指针? /* * @lc app=leetcode.cn id=5 lang=cpp * * [5] 最长回文子串 */ // @lc code=start class Solution { public: string longestPalindrome(stri 阅读全文
posted @ 2022-08-11 11:08 千心 阅读(18) 评论(0) 推荐(0) 编辑
摘要: Greedy Algorithm A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage. In 阅读全文
posted @ 2022-08-10 16:24 千心 阅读(43) 评论(0) 推荐(0) 编辑
摘要: To solve the optimization problem in computing the two methods namely greedy and dynamic programming are used. The solutions produced by the greedy al 阅读全文
posted @ 2022-08-08 18:03 千心 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 以下代码未优化且速度不快,主要为了数据结构 /* * @lc app=leetcode.cn id=347 lang=cpp * * [347] 前 K 个高频元素 */ // @lc code=start class Solution { public: vector<int> topKFrequ 阅读全文
posted @ 2022-08-05 18:05 千心 阅读(34) 评论(0) 推荐(0) 编辑
摘要: https://superuser.com/questions/344533/no-such-file-or-directory-error-in-bash-but-the-file-exists 阅读全文
posted @ 2022-08-05 11:15 千心 阅读(11) 评论(0) 推荐(0) 编辑
摘要: CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD'; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES; sudo service mysql res 阅读全文
posted @ 2022-07-29 15:17 千心 阅读(61) 评论(0) 推荐(0) 编辑
摘要: Program not like Math, has few but vast ways. Program Pearls Series aims to find "the way". 算法珠玑系列,旨在写出SoTA的算法代码,这种实现,实现那唯一的实现 QuickSort #include<iost 阅读全文
posted @ 2022-07-03 21:31 千心 阅读(115) 评论(0) 推荐(0) 编辑
摘要: # N-gram Language Models We have an arbitrary sequence of m words. ## Joint possibility $P(w_1, w_2, ..., w_m)$ ## Conditional Possibility $P(w_1, w_2 阅读全文
posted @ 2022-06-20 18:04 千心 阅读(54) 评论(0) 推荐(0) 编辑
摘要: # Transistor (CMOS) ## MOSFET The metal–oxide–semiconductor field-effect transistor (MOSFET, MOS-FET, or MOS FET), also known as the metal–oxide–silic 阅读全文
posted @ 2022-06-19 21:38 千心 阅读(424) 评论(0) 推荐(0) 编辑
摘要: > So, you want to talk about performance. # x86 ISA Program - MASM, the Microsoft Assembler. It outputs OMF files (but Microsoft’s linker can convert 阅读全文
posted @ 2022-06-13 22:06 千心 阅读(62) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页