- 博客(4)
- 收藏
- 关注
原创 LeetCode 396: Rotate Function (Python3)
题目Given an array of integers A and let n to be its length.Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a “rotation function” F on A as follow: F(k)=...
2018-06-21 22:51:42
349
原创 LeetCode 319: Bulb Switcher (Python3)
题目There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it’s off or turning ...
2018-06-21 22:41:25
364
原创 Sublime Text 常用技巧总结
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I...
2018-05-13 21:37:48
834
原创 Matlab的两种除法:左除(\)和右除(/)
博主目前大二,现正在学习matlab。在学习过程中发现matlab中的两种除法比较容易让人混淆,也很难记住,即左除和右除。 在matlab中运行下列语句,可以发现,两种除法的结果是不一样的。1/2的结果是0.5,但是1\2的结果却是相反的2。 其实可以发现了,1\2左右对称一下,其实就是2/1,\其实就是可以认为普通除法的方向换了一下。这一点也在求解线性方程组中得到了验证。 左除: A
2017-10-16 15:58:56
90068
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人