
最长回文子串
Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). You may assume nums1 and nums2 cannot be both empty.
Unix 哲学是:构建小型、单一的应用程序,不管用什么语言,只做一件小而美的事情,用 stdin / stdout 进行通信,并通过管道进行连接。 微服务的概念与发展在1984年Rob Pike和Brian W.Kernighan发布的 Unix环境编程 文章中,使用了BSD的cat -v的例子来认证Unix哲学。这不就正是 James Lewis 和 Martin Fowler 给出的微服务定义。
什么是Context?读到很多关于Context(上下文)的术语,如应用上下文,请求上下文等,查阅资料但没有得到理解?有没有比较好的解释? Context 指做一件事情的背景/环境/上下文/所需要的必要的数据。
之前学习语言一直忽略的就是所有语言中关于位操作,觉得用处并不多,可能用到也非常简单的用法,但是其实它们的作用还是非常大的。以下是一些Golang位操作符的基础:
今天,线上环境因一个SQL查询结果错误,出现大量推送消息。消息投递功能使用的是swoft的任务投递功能,所以特意来看下swoft源码,Swoft的任务功能基于Swoole的Task机制,或者说Swoft的Task机制本质就是对SwooleTask机制的封装和加强。