摘要: 189. Rotate Array Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5 阅读全文
posted @ 2016-11-08 17:25 花椰菜菜菜菜 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 172. Factorial Trailing Zeroes Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time compl 阅读全文
posted @ 2016-11-08 16:36 花椰菜菜菜菜 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 171. Excel Sheet Column Number Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding 阅读全文
posted @ 2016-11-08 11:45 花椰菜菜菜菜 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 169. Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. Y 阅读全文
posted @ 2016-11-08 10:58 花椰菜菜菜菜 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 当电脑同时连接有线和WiFi时(有线连接为内网,WiFi为外网),会出现内网和外网内容无法同时访问的情况。 本方法实现内网和外网的同时访问。 第一步: 输入指令 “route print ” 查看路由表; 第二步: 输入“route delete 0.0.0.0” 删除默认路由; 第三步: 输入“r 阅读全文
posted @ 2016-10-23 10:01 花椰菜菜菜菜 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 168. Excel Sheet Column Title Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 阅读全文
posted @ 2016-10-11 22:29 花椰菜菜菜菜 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 165. Compare Version Numbers Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, othe 阅读全文
posted @ 2016-10-11 19:40 花椰菜菜菜菜 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 160. Intersection of Two Linked Lists Write a program to find the node at which the intersection of two singly linked lists begins. For example, the f 阅读全文
posted @ 2016-10-11 10:33 花椰菜菜菜菜 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 155. Min Stack Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. 阅读全文
posted @ 2016-10-11 09:54 花椰菜菜菜菜 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 141. Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 判断一个单链表中是否存在环。不利用 阅读全文
posted @ 2016-10-10 21:22 花椰菜菜菜菜 阅读(95) 评论(0) 推荐(0) 编辑