Palette Blog

つづく日々の道の先を 塞ぐ影にアイデアを

LeetCode 164 - Maximum Gap

"For Algorithm Course"

LeetCode题解(十四) - Maximum Gap 题目难度:Hard 题目地址:N0.164 Maximum Gap 题目描述: Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array c...

LeetCode 76 - Minimum Window Substring

"For Algorithm Course"

LeetCode题解(十三) - Minimum Window Substring 题目难度:Hard 题目地址:No.76 Minimum Window Substring 题目描述: Given a string S and a string T, find the minimum window in S which will contain all the characters in ...

LeetCode 174 - Dungeon Game

"For Algorithm Course"

LeetCode题解(十二) - Dungeon Game 题目难度:Hard 题目地址:No.174 Dungeon Game 题目描述: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M...

LeetCode 85 - Maximal Rectangle

"For Algorithm Course"

LeetCode题解(十一) - Maximal Rectangle 题目难度:Hard 题目地址:No.85 Maximal Rectangle 题目描述: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area....

Service Computing课程博客(四) - Go语言net/http包源码分析与功能介绍

"Read golang net/http codes...."

Read source codes makes you better programming skills…. Go语言开发Web程序:UserCloud-Go 仓库地址 Golang net/http源码分析和功能介绍 一、net/http库实现http服务器的构建流程 一般来说,一个能够正常进行工作的http服务器需要实现以下的工作流程: 在当前主机上的某个端口开启监...

LeetCode 87 - Scramble String

"For Algorithm Course"

LeetCode题解(十) - Scramble String 题目难度:Hard 题目地址:No.87 Scramble-String 题目描述: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below...

LeetCode 32 - Longest Valid Parentheses

"For Algorithm Course"

LeetCode题解(九) - Longest Valid Parentheses 题目难度:Hard 题目地址:No.32 Longest-Valid-Parentheses 题目描述: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-...

LeetCode 135 - Candy

"For Algorithm Course"

LeetCode题解(八) - Candy 题目难度:Hard 题目地址:No.135 Candy 题目描述: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the fo...

区块链课程博客(二) - POW共识机制与优缺点探讨

"Discuss in POW mechanism.."

POW共识机制相关论文读书报告 1. POW共识机制的工作原理 POW共识机制,是区块链体系中用于证明比特币区块记账合法性的机制,全称为Proof Of Work。与其余的中心化体系截然不同的是,比特币为去中心化架构,那么应该由谁来决定每一笔交易的合理性和有效性呢?针对此关键问题,POW共识机制的引入,实现通过消耗一定量计算资源,采用算力运算数学哈希求解问题,若运算成功即可...

LeetCode 316 - Remove Duplicate Letters

"For Algorithm Course"

LeetCode题解(七) - Remove-Duplicate-Letters 题目难度:Hard 题目地址:No.316 Remove Duplicate Letters 题目描述: Given a string which contains only lowercase letters, remove duplicate letters so that every letter app...