摘要: 题目:A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its ind... 阅读全文
posted @ 2016-01-13 23:20 很好玩 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 今天做项目中,用background显示了二维码和一些文字,但显示到页面上时,二维码和图片都变得模糊了。于是将图片调整、放大,但在放大后,作为背景图片的它则显示不全,无奈之下用了backgroung-size。但background-size在IE下不兼容,故最后使用了img+width+hei... 阅读全文
posted @ 2016-01-13 16:54 很好玩 阅读(8451) 评论(0) 推荐(4) 编辑
摘要: 题目:According to theWikipedia's article: "TheGame of Life, also known simply asLife, is a cellular automaton devised by the British mathematician John ... 阅读全文
posted @ 2016-01-13 11:22 很好玩 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your max... 阅读全文
posted @ 2016-01-13 10:43 很好玩 阅读(211) 评论(0) 推荐(0) 编辑