Born to be proud
3/8
2019

Leetcode 指南

自己日常刷题经过是这样的:

  1. 拿到题目,看一眼Difficulty,然后自己思考一下解题思路。如果解不出来,就记下在哪里卡住了,难点在哪。
  2. 如果对应的题目有Solution,就看Solution,没有的话就点Discuss,按Most Votes排序,看排名最高的解法。
  3. 对比一下自己的解法与最优的解法的差别,总结一下为什么没想起来,记录下来这个思考的过程。
  4. 关掉别人的代码,开始Coding,Debug,Submit。

= "/img/background1.jpg";break; case 2: path = "/img/background2.jpg";break; case 3: path = "/img/background3.jpg";break; case 4: path = "/img/background4.jpg";break; case 5: path = "/img/background5.jpg";break; case 6: path = "/img/background6.jpg";break; case 7: path = "/img/background7.jpg";break; case 8: path = "/img/background8.jpg";break; case 9: path = "/img/background9.jpg";break; case 10: path = "/img/background10.jpg";break; /* case 0: path = "http://ogzyt1sa2.bkt.clouddn.com/background0.jpg";break; //图片位置 case 1: path = "http://ogzyt1sa2.bkt.clouddn.com/background1.jpg";break; case 2: path = "http://ogzyt1sa2.bkt.clouddn.com/background2.jpg";break; case 3: path = "http://ogzyt1sa2.bkt.clouddn.com/background3.jpg";break; case 4: path = "http://ogzyt1sa2.bkt.clouddn.com/background4.jpg";break; case 5: path = "http://ogzyt1sa2.bkt.clouddn.com/background5.jpg";break; case 6: path = "http://ogzyt1sa2.bkt.clouddn.com/background6.jpg";break; case 7: path = "http://ogzyt1sa2.bkt.clouddn.com/background7.jpg";break; case 8: path = "http://ogzyt1sa2.bkt.clouddn.com/background8.jpg";break; case 9: path = "http://ogzyt1sa2.bkt.clouddn.com/background9.jpg";break; case 10: path = "http://ogzyt1sa2.bkt.clouddn.com/background10.jpg";break;*/ } document.body.style.backgroundImage = "URL("+path+")"; //显示对应的图片 }