Docker快速部署一个属于你自己的博客
Docker快速部署一个solo博客
Docker快速部署一个solo博客
gctrace主要是用于跟踪GC的不同阶段的耗时与GC前后的内存量对比。可以用于对runtime本身进行调试之外,还可以观察线上应用的GC情况。
You want to schedule a list of jobs in d
days. Jobs are dependent (i.e To work on the i-th
job, you have to finish all the jobs j
where 0 <= j < i
).
共享变量的拷贝和append操作线程不安全,导致map被多个协程操作,引发panic。
给定一个非负整数数组nums和一个整数m ,你需要将这个数组分成m个非空的连续子数组。
设计一个算法使得这m个子数组各自和的最大值最小。
当golang程序在运行过程中消耗了超出预期内存时,需要搞明白,到底是程序中哪些代码导致了这些内存消耗。此时,通常可以采用golang的pprof来分析golang进程的内存使用。
给你一个由若干括号和字母组成的字符串 s
,删除最小数量的无效括号,使得输入的字符串有效。
返回所有可能的结果。答案可以按任意顺序返回。
Given an m x n
grid of characters board
and a string word
, return true
if word
exists in the grid.
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
Given two strings text1
and text2
, return common subsequence. If there is no common subsequence, return 0
.
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
通过先序和中序数组生成后序数组
A linked list of length n
is given such that each node contains an additional random pointer, which could point to any node in the list, or null
.Construct a deep copy of the list.
Given a string s
, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
The n-queens puzzle is the problem of placing n queens on an n_×_n chessboard such that no two queens attack each other.