代码改变世界

【IntelliJ IDEA】代码模板

2021-07-21 09:12 by jetwill, 60 阅读, 0 推荐, 收藏, 编辑
摘要:psvm:main方法 sout:console输出 iter:foreach遍历 fori:for索引遍历 阅读全文

如何在 CentOS 上安装 dos2unix 和 unix2dos 命令

2021-07-18 17:17 by jetwill, 963 阅读, 0 推荐, 收藏, 编辑
摘要:yum install -y dos2unix 注意:以上安装包既包含 dos2unix 命令,又包含 unix2dos 命令。 阅读全文

下面哪些命令可以查看file1文件的第300-500行的内容?

2021-07-11 16:34 by jetwill, 2248 阅读, 0 推荐, 收藏, 编辑
摘要:下面哪些命令可以查看file1文件的第300-500行的内容? cat file1 | tail -n +300 | head -n 200 cat file1| head -n 500 | tail -n +300 sed -n '300,500p' file1 答案:BC 解释: >head - 阅读全文

Autosys 快速参考

2021-06-15 14:36 by jetwill, 966 阅读, 0 推荐, 收藏, 编辑
摘要:Autosys Quick Reference Introduction to Autosys: AutoSys is an automated job control system for scheduling, monitoring, and reporting. These jobs can 阅读全文

JSch Algorithm negotiation fail

2021-06-02 09:35 by jetwill, 210 阅读, 0 推荐, 收藏, 编辑
摘要:https://stackoverflow.com/questions/30846076/jsch-algorithm-negotiation-fail As you can see, the server offers these ciphers: INFO: kex: server: aes25 阅读全文

从一堆 JAR 文件中,找出一个 Java class 文件的所在配置

2021-05-31 18:00 by jetwill, 74 阅读, 0 推荐, 收藏, 编辑
摘要:Find a class somewhere inside dozens of JAR files? find path/to/libs -name '*.jar' -exec grep -Hls ClassName {} \; $ find . -name '*.jar' -exec grep - 阅读全文

LC 二叉树的最大深度

2021-05-11 20:21 by jetwill, 35 阅读, 0 推荐, 收藏, 编辑
摘要:https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/xnd69e/ Recursion /** * Definition for a binary tree node. * public class TreeNode 阅读全文

剑指 Offer 10- I. 斐波那契数列

2021-05-08 23:58 by jetwill, 46 阅读, 0 推荐, 收藏, 编辑
摘要:https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof/ Python 2 class Solution(object): def fib(self, n): """ :type n: int :rtype: int """ if n < 阅读全文

[编程题]糕点

2021-04-26 21:04 by jetwill, 270 阅读, 0 推荐, 收藏, 编辑
摘要:小团的蛋糕铺长期霸占着美团APP中“蛋糕奶茶”栏目的首位,因此总会吸引各路食客前来探店。 小团一天最多可以烤n个蛋糕,每个蛋糕有一个正整数的重量。 早上,糕点铺已经做好了m个蛋糕。 现在,有一个顾客要来买两个蛋糕,他希望买这一天糕点铺烤好的最重的和最轻的蛋糕,并且希望这两个蛋糕的重量恰好为a和b。剩 阅读全文

[编程题]晋级人数

2021-04-26 21:03 by jetwill, 185 阅读, 0 推荐, 收藏, 编辑
摘要:小团是某综艺节目的策划,他为某个游戏环节设计了一种晋级规则,已知在这个游戏环节中每个人最后都会得到一个分数score_i,显而易见的是,游戏很有可能出现同分的情况,小团计划该环节晋级人数为x人,则将所有人的分数从高到低排序,所有分数大于等于第x个人的分数且得分不为0的人都可以晋级。 请你求出本环节的 阅读全文
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页