Using the stdout to debug print the solution in the leetcode con
- 时间:2020-09-07 12:03:44
- 分类:网络文摘
- 阅读:165 次
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) —
推荐阅读:两条直角边的长度是两个质数 小羊小鹿和小熊共同修建一个小水池 wordpress 文章发布出现“定时发布失败”的原因及解决方法 wordpress 数据库表前缀修改方法 wordpress技巧:为标签链接添加rel=”nofollow”属性 wordpress 4.0 新增自定义图标插件安装 WordPress在线文件管理插件:FileBrowser 设置wordpress文章标题高亮的代码 免插件实现WordPress文章置顶的方法 让新浪微博变身外链图床的wordpress插件:微博图床
- 评论列表
-
- 添加评论