2018年8月的全部文章
@kidultff

PAT-A 真题 – 1105 Spiral Matrix

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 first element at the upper-left corner, then move in a clockw ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1104 Sum of Number Segments

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 have 10 segments: (0.1) (0.1, 0.2) (0.1, 0.2, 0.3) (0.1, 0.2, 0.3, 0.4) (0.2) ...
  • 0
  • 0
@kidultff

WordPress极致加速-Nginx+WP Fastest Cache全静态化

在使用Nginx+WP Fastest Cache时,虽然页面做了缓存,但并不是真正的缓存,请求仍然需要通过PHP解析器来处理,最简单的验证方法时把网站目录的index.php修改个名字,网站就挂掉了。网上有很多Wp Super Cache配置Nginx的例子,但是没有找到Wp Faste ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1038 Recover the Smallest Number

Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such like 32-321-3214-0229-87 or 0229-32-87-321-3214 with ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1037 Magic Coupon

The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a product, you may get N times the value of that product back! What is more, the shop a ...
  • 0
  • 0