Introduction
use the leetcode to improve my programming standard.
leetcode的刷题方式,首先在脑海中考虑使用伪代码如何处理(包括用哪些函数来处理比如enumerate等),如何比较答案中的内容,看是否哪些点没有考虑到,再自己根据伪代码动手实现。
将解题分为思考和编程两个阶段。其中思考部分又分为空间和时间,涉及到思考流程图。在编码阶段分为将代码进行调节抽象(将循环的各个次数平行写出、每一次循环能够做什么与题目相关的工作,从而帮助抽象)。
the code will be displayed as followed:
Love my wife, pig bun~
Last updated
Was this helpful?