12 2019 档案
摘要:Easy Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed either ite
阅读全文
摘要:IDE的下载和安装: 首先,到visual studio官网下载vs2019的安装程序。 学生、或个人开发者免费下载第一个community版本。 下载完成后双击进行安装。安装时要选择安装工作负载。可根据需要勾选相应的负载。因为我们要写c/c++程序,所以勾选了这个使用c++的桌面开发,然后点击右下
阅读全文
摘要:查看数据类型使用typeof()方法: typeof (val); 判断其是否为undefined: typeof (val) == 'undefined' 注意undefined一定要用引号括起来。 当val定义但未初始化时下面这行代码输出true,当val是已初始化的其他类型数据,代码输出fal
阅读全文
摘要:swiper动态改变数据后分页器的页数就变混乱了,导致内容展示不全。 本文的解决方法不能算是真正意义上的解决了问题。只是在展示上符合了要求。 效果图: 解决方法: 每次动态改变数据时都把原来的swiper删除,重新添加并初始化一个swiper,只是改变了swiper-wrapper里的数据。具体代码
阅读全文
摘要:Medium Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maxi
阅读全文
摘要:Medium Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corne
阅读全文

浙公网安备 33010602011771号