上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: Easy Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: [1,2,3,4,5,6,7] and k = 3 Output: [5,6,7,1,2 阅读全文
posted @ 2019-11-13 15:16 程嘿嘿 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1.幂指数 底数为x,幂指数为a,计算得x的a次方: pow(x,a) 阅读全文
posted @ 2019-11-05 12:06 程嘿嘿 阅读(4064) 评论(0) 推荐(0) 编辑
摘要: 动态分配也需要一个值来确定数组的长度,指不定过这个值可以是动态的值,而不是常量。 1.malloc int *p=(int*)malloc(n*sizeof(int)); 其中n是动态数值,表示数组的大小。 2.vector 动态分配一维数组: int n=3; vector<int> a(n); 阅读全文
posted @ 2019-11-05 12:05 程嘿嘿 阅读(5499) 评论(0) 推荐(0) 编辑
摘要: Medimu Compare two version numbers version1 and version2.If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may 阅读全文
posted @ 2019-11-05 12:02 程嘿嘿 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1.使用python安装TensorFlow,所以首先正确安装python且配置好环境变量。 经过多次安装测试,目前win10使用python3.5.4能够成功安装使用TensorFlow。 2.使用python自带的包管理工具pip进行安装tensorflow: 输入命令pip install - 阅读全文
posted @ 2019-11-02 14:42 程嘿嘿 阅读(571) 评论(0) 推荐(0) 编辑
摘要: Medium Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1 阅读全文
posted @ 2019-10-31 12:05 程嘿嘿 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Medium A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a de 阅读全文
posted @ 2019-10-17 16:30 程嘿嘿 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Medium There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and 阅读全文
posted @ 2019-10-16 14:44 程嘿嘿 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Medium Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into ' 阅读全文
posted @ 2019-10-14 14:23 程嘿嘿 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 效果: 对于不规则图片,在屏幕缩小时图片适当左移,但为了不遮挡左侧文字,左移至一定位置后图片固定位置。 方法: 给背景图片设置宽度和absolute定位,使得图片浮于页面。然后在js里边判断当前窗口大小,当页面小到会致使图片遮挡左侧文字时,给图片添加left属性,这样图片就不会再向左移动了(如果文字 阅读全文
posted @ 2019-10-11 17:39 程嘿嘿 阅读(1975) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页