摘要:
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi 阅读全文
摘要:
The K−P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program t 阅读全文
摘要:
The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a 阅读全文
摘要:
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th 阅读全文
摘要:
转自https://www.nowcoder.com/discuss/post/398883449182978048 担心以后炸了备份一下。 基础 高频 1.手写 instanceof // 原理:验证当前类的原型prototype是否会出现在实例的原型链proto上,只要在它的原型链上,则结果都为 阅读全文
摘要:
1.水平垂直居中,分别都说出两种 https://www.jianshu.com/p/fc95a49821e2 只水平: 1. text-align:center; 2.margin:0 auto;配合 width:fit-content; 3.flex方法: display: flex; just 阅读全文