Using the stdout to debug print the solution in the leetcode con
- 时间:2020-09-07 12:03:44
- 分类:网络文摘
- 阅读:162 次
The leetcode web coding IDE has a premium debugger feature – however this is not enabled during the contest. Recently I found out that you can actually print to STDOUT and then when you run your solution – you will see the output – this is an easy yet powerful method to debug when you don’t have other better solutions.

leetcode-stdout-debugging-trick
This is a great way to debug your code when you don’t have a IDE at hand – sometimes I participated the weekly contests on iPad where I don’t have IDE and I don’t have access to the inbuilt leetcode debugger as well – in this case, the printing to stdout is the only practical way of debugging printing the variables. Prior to this, I can only change the code and return the variable as a debugging technique – which is very inefficient.

leetcode
–EOF (The Ultimate Computing & Technology Blog) —
推荐阅读:数学题:他们到达A、B两地的中点C地时都会提速20% 一个数的近似值是20万,这个数最大是多少?最小是多少? 图中有多少个长方形 一块正方形的纸板(如图),先剪下宽7厘米的长方形 数学题:9个队员进行单循环制猜丁壳比赛 数学题:有三位登山者要攀登一座荒无人烟的大山。出发时每人只能携带够6天的食物 数学题:一个多位数四舍五入后是1亿,这个数最小是多少? 新网站优化对于一个企业来说到底有多重要 大学生如何在渗透测试行业立足 网站渗透测试中的历程经验记录分析
- 评论列表
-
- 添加评论