ARTS Week 1 (03/17/2019 - 03/23/2019)

Algorithm: 每周至少做一个 leetcode 的算法题
Review: 阅读并点评至少一篇英文技术文章
Tip: 学习至少一个技术技巧
Share: 分享一篇有观点和思考的技术文章

Algorithm

找工作的时候按照company tag刷了几十道,后来搁置了好久,现在暂时决定先按顺序用Java刷(工作上用Java多)

本周做了Reverse Integer:

题干里说:

Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−2^31, 2^31 − 1]

刚看到的时候一脸懵。。

2^31 − 1 == 2147483647 == 01111111111111111111111111111111 (31个1) is the maximum positive value for a 32-bit signed binary integer in computing
−2^31 == −2147483648 == 1111 1111 1111 1111 1111 11111 1111 1111 (32个1)is the maximum negtive value for a 32-bit signed binary integer in computing

这题很简单,有很多做法,但是我一开始完全没有考虑到overflow的问题,我对这一类知识包括位操作,memory usage,overflow等等都掌握的不好,os方面的知识太欠缺了。

Review

TBD 本周oncall,回头更新。暂时先写个wonder list,标记一下想学的东西,排名不分先后。

  1. OS
  2. Network
  3. ML (MLU?)
  4. AWS
  5. React
  6. Guice,Spring
  7. code complete
  8. Algorithm (review)

Tip

分享几个平时工作上经常用到的命令

1
2
3
ps -ef | grep java // 查看host上运行的Java
ps -ef | gerp tomcat // 查看host上运行的tomcat
ps ax | grep -e '-Xrunjdwp' |tr '' '\n' | grep -e 'Xrunjdwp' // 查看host上运行的jdwp

用less查看log的时候

1
2
gg // scroll to the top of the log
shift f or g //scroll to the bottom of the log

Share

分享一篇关于建立高效工作环境的博客,最近总感觉干起活来事倍功半,下个sprint之前找机会设置一下RDE,每次都等着Apollo local deployment太费时间了

打造高效工作环境