240 发简信
IP属地:澳门
  • CentOS7 修改主机名 hostname

    问题 之前创建的虚拟机hostname可以自动设置为本机的IP地址,这样的话登录到某个主机上后,通过提示符上显示的主机名就能随时知道本机的IP地...

  • [LeetCode By Go 104]38. Count and Say

    题目 The count-and-say sequence is the sequence of integers with the first...

  • 最长递增子序列

    问题定义: 给定一个长度为N的数组,找出一个最长的单调自增子序列(不一定连续,但是顺序不能乱)。例如:给定一个长度为6的数组A{5, 6, 7,...

  • [LeetCode By Go 17]485. Max Consecutive Ones

    题目 Given a binary array, find the maximum number of consecutive 1s in th...

  • ansible批量修改NTP配置

    网络组同学通知我有一批虚拟机的ntp配置是错的,时间不能同步,需要修改ntp服务器配置用来同步时间,使用ansible处理完了,现在做个总结。 ...

  • Resize,w 360,h 240
    Mac平台docker镜像操作加速

    你是否遇到拉取docker镜像很慢甚至失败的问题,shadowsocks 也没用,这时候你需要修改镜像源来加速: Docker for Mac ...

  • 开始使用快捷键

    你了解浏览器标签页之间怎么快速切换吗?你知道怎么使用快捷键切换地址栏是否打开吗?如果你和我一样每天都要花几个小时用在浏览器上,那就是时候花点时间...

  • [LeetCode By Go 747] Easy, Array, 747. Largest Number At Least Twice of Others

    题目 In a given integer array nums, there is always exactly one largest el...

  • [LeetCode By Go 724] Easy, Array, 724. Find Pivot Index

    题目 Given an array of integers nums, write a method that returns the "piv...