摘要:
算法珠玑——最长回文子串(5) 三指针? /* * @lc app=leetcode.cn id=5 lang=cpp * * [5] 最长回文子串 */ // @lc code=start class Solution { public: string longestPalindrome(stri 阅读全文
摘要:
Greedy Algorithm A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage. In 阅读全文
摘要:
To solve the optimization problem in computing the two methods namely greedy and dynamic programming are used. The solutions produced by the greedy al 阅读全文
摘要:
以下代码未优化且速度不快,主要为了数据结构 /* * @lc app=leetcode.cn id=347 lang=cpp * * [347] 前 K 个高频元素 */ // @lc code=start class Solution { public: vector<int> topKFrequ 阅读全文
摘要:
https://superuser.com/questions/344533/no-such-file-or-directory-error-in-bash-but-the-file-exists 阅读全文
摘要:
CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD'; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES; sudo service mysql res 阅读全文
摘要:
Program not like Math, has few but vast ways. Program Pearls Series aims to find "the way". 算法珠玑系列,旨在写出SoTA的算法代码,这种实现,实现那唯一的实现 QuickSort #include<iost 阅读全文
摘要:
# 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 阅读全文
摘要:
# Transistor (CMOS) ## MOSFET The metal–oxide–semiconductor field-effect transistor (MOSFET, MOS-FET, or MOS FET), also known as the metal–oxide–silic 阅读全文
摘要:
> So, you want to talk about performance. # x86 ISA Program - MASM, the Microsoft Assembler. It outputs OMF files (but Microsoft’s linker can convert 阅读全文