摘要: Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence { 0.1, 0.2, 0.3, 0.4 }, we 阅读全文
posted @ 2022-11-19 02:15 zzzlight 阅读(6) 评论(0) 推荐(0) 编辑
摘要: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer 阅读全文
posted @ 2022-11-19 02:14 zzzlight 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-11-19 02:13 zzzlight 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-11-19 02:06 zzzlight 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-11-19 02:06 zzzlight 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-11-19 02:02 zzzlight 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 转自https://www.nowcoder.com/discuss/post/398883449182978048 担心以后炸了备份一下。 基础 高频 1.手写 instanceof // 原理:验证当前类的原型prototype是否会出现在实例的原型链proto上,只要在它的原型链上,则结果都为 阅读全文
posted @ 2022-11-19 00:55 zzzlight 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1.水平垂直居中,分别都说出两种 https://www.jianshu.com/p/fc95a49821e2 只水平: 1. text-align:center; 2.margin:0 auto;配合 width:fit-content; 3.flex方法: display: flex; just 阅读全文
posted @ 2022-11-19 00:54 zzzlight 阅读(44) 评论(0) 推荐(0) 编辑