11 2017 档案

摘要:238. Product of Array Except SelfGiven an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of... 阅读全文
posted @ 2017-11-29 20:38 link98 阅读(141) 评论(0) 推荐(0) 编辑
摘要:442. Find All Duplicates in an ArrayGiven an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Fi... 阅读全文
posted @ 2017-11-27 12:44 link98 阅读(118) 评论(0) 推荐(0) 编辑
摘要:100. Same TreeGiven two binary trees, write a function to check if they are the same or not.Two binary trees are considered the same if they are struc... 阅读全文
posted @ 2017-11-26 12:56 link98 阅读(113) 评论(0) 推荐(0) 编辑
摘要:530. Minimum Absolute Difference in BSTGiven a binary search tree with non-negative values, find the minimum absolute difference between values of any... 阅读全文
posted @ 2017-11-25 10:45 link98 阅读(118) 评论(0) 推荐(0) 编辑
摘要:728. Self Dividing NumbersA self-dividing number is a number that is divisible by every digit it contains.For example, 128 is a self-dividing number b... 阅读全文
posted @ 2017-11-24 16:57 link98 阅读(140) 评论(0) 推荐(0) 编辑
摘要:1.安装可以去官网去下载:官网也可以去:CSDN下载链接安装的过程中附加选项可以都选,会安装wireshark,solarwinds等等,如果已经安装,可以根据提示取消。2.安装ios安装完抽后,打开软件会出 网络选择,取消就行。然后就需要安装ios,可以去这个网址下载:ios下载具体的安装步骤:i... 阅读全文
posted @ 2017-11-24 16:11 link98 阅读(465) 评论(0) 推荐(0) 编辑
摘要:387. First Unique Character in a StringGiven a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return... 阅读全文
posted @ 2017-11-22 18:42 link98 阅读(125) 评论(0) 推荐(0) 编辑
摘要:前一段时间电脑上的虚拟机打不开了,点击开机就一直黑屏,挂起时能够看到显示,但是开机就黑屏。百度了之后找到了解决方案:(我是第一种方案就解决了)(据说可能是wegame的锅。。。)方法1:命令行窗口—输入 netsh winsock reset,然后重启计算机。方法2:VM->Settings->Ha... 阅读全文
posted @ 2017-11-21 16:19 link98 阅读(2137) 评论(0) 推荐(1) 编辑
摘要:167. Two Sum II - Input array is sortedGiven an array of integers that is already sorted in ascending order, find two numbers such that they add up to... 阅读全文
posted @ 2017-11-21 15:35 link98 阅读(103) 评论(0) 推荐(0) 编辑
摘要:leetcode-169. Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more tha... 阅读全文
posted @ 2017-11-21 09:00 link98 阅读(175) 评论(0) 推荐(0) 编辑
摘要:455. Assign CookiesAssume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. E... 阅读全文
posted @ 2017-11-20 19:38 link98 阅读(158) 评论(0) 推荐(0) 编辑
摘要:Python-函数其他切片对于list和tuple来说,可能有事需要获得他们的子串,而Java等都提供了类似subString()的方法来获取子串,而对于Python来说则有一种方法叫 切片 例如: L = ['michel','Sarah','Bob','Tom'] 想要获取L的前... 阅读全文
posted @ 2017-11-20 16:21 link98 阅读(149) 评论(0) 推荐(0) 编辑
摘要:Python学习笔记说明所有的Python学习笔记都是我在学习廖雪峰的官方网站中的Python教程过程中记录下来的,所以大部分内容会与廖大大教程中的内容相重合,我只是想自己再写一遍,加深印象,作为记录,以便日后复习。 如果大家想学习Python,可以去廖大大的网站。 最后感谢廖大大的... 阅读全文
posted @ 2017-11-19 09:34 link98 阅读(71) 评论(0) 推荐(0) 编辑
摘要:Python-函数函数定义python中的定义函数使用 def ,依次写出函数名,参数和冒号: ,在缩进块中写函数体,return返回值 例:def my_abs(x): if x >= 0: return x else: return -xp... 阅读全文
posted @ 2017-11-19 09:21 link98 阅读(186) 评论(0) 推荐(0) 编辑
摘要:Python-dict 和 setdictPython内置了字典:dict的支持,dict全称dictionary,在其他语言中也称为map,使用键-值(key-value)存储 定义格式:>>>dic = {'Miachel':95,'Bob':75,'Tracy':85}>>>d... 阅读全文
posted @ 2017-11-18 16:58 link98 阅读(148) 评论(0) 推荐(0) 编辑
摘要:Python学习笔记-1ListPython内置的一种数据类型是列表:list。list是一种有序的集合,可以随时添加和删除其中的元素。 定义格式:classmates = ['ichel','Bob','Tom']可以用 len() 来获取 list 的长度>>>len(class... 阅读全文
posted @ 2017-11-18 16:06 link98 阅读(116) 评论(0) 推荐(0) 编辑
摘要:563. Binary Tree TiltGiven a binary tree, return the tilt of the whole tree.The tilt of a tree node is defined as the absolute difference between the ... 阅读全文
posted @ 2017-11-18 10:53 link98 阅读(124) 评论(0) 推荐(0) 编辑
摘要:404. Sum of Left LeavesFind the sum of all left leaves in a given binary tree.Example: 3 / \ 9 20 / \ 15 7There are two left leaves in ... 阅读全文
posted @ 2017-11-17 11:31 link98 阅读(99) 评论(0) 推荐(0) 编辑
摘要:383. Ransom NoteGiven an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return ... 阅读全文
posted @ 2017-11-16 22:56 link98 阅读(94) 评论(0) 推荐(0) 编辑
摘要:349. Intersection of Two ArraysGiven two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], re... 阅读全文
posted @ 2017-11-15 17:32 link98 阅读(122) 评论(0) 推荐(0) 编辑
摘要:453. Minimum Moves to Equal Array ElementsGiven a non-empty integer array of size n, find the minimum number of moves required to make all array eleme... 阅读全文
posted @ 2017-11-12 10:28 link98 阅读(114) 评论(0) 推荐(0) 编辑
摘要:697. Degree of an ArrayGiven a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one ... 阅读全文
posted @ 2017-11-11 15:52 link98 阅读(118) 评论(0) 推荐(0) 编辑
摘要:598. Range Addition IIGiven an m * n matrix M initialized with all 0's and several update operations.Operations are represented by a 2D array, and eac... 阅读全文
posted @ 2017-11-09 17:00 link98 阅读(162) 评论(0) 推荐(0) 编辑
摘要:492. Construct the RectangleFor a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web pa... 阅读全文
posted @ 2017-11-08 17:30 link98 阅读(140) 评论(0) 推荐(0) 编辑
摘要:1.仅对本类可见-private2.对所有类可见 -public3.对本包和所有子类可见 -protected4.对本包可见-default(不需要修饰符) PrivateDefaultProtectedPublic同一个类1111同一个包的子类0111同一个包的非子类0111不同包的子类0011不... 阅读全文
posted @ 2017-11-07 19:57 link98 阅读(595) 评论(0) 推荐(0) 编辑
摘要:本文转自http://www.jb51.net/article/41430.htm是我看过的介绍这些关键字比较好的文章了,所以分享一下—————————————————————————————————————————————————————————————————————————————static... 阅读全文
posted @ 2017-11-07 19:16 link98 阅读(336) 评论(0) 推荐(0) 编辑
摘要:538. Convert BST to Greater TreeGiven a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to t... 阅读全文
posted @ 2017-11-07 11:44 link98 阅读(109) 评论(0) 推荐(0) 编辑
摘要:606. Construct String from Binary TreeYou need to construct a string consists of parenthesis and integers from a binary tree with the preorder travers... 阅读全文
posted @ 2017-11-06 17:19 link98 阅读(93) 评论(0) 推荐(0) 编辑
摘要:283. Move ZeroesGiven an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.F... 阅读全文
posted @ 2017-11-05 19:56 link98 阅读(101) 评论(0) 推荐(0) 编辑
摘要:653. Two Sum IV - Input is a BSTGiven a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum... 阅读全文
posted @ 2017-11-04 21:41 link98 阅读(128) 评论(0) 推荐(0) 编辑
摘要:389. Find the DifferencGiven two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then a... 阅读全文
posted @ 2017-11-03 11:23 link98 阅读(121) 评论(0) 推荐(0) 编辑
摘要:448. Find All Numbers Disappeared in an ArrayGiven an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others ... 阅读全文
posted @ 2017-11-02 15:05 link98 阅读(117) 评论(0) 推荐(0) 编辑
摘要:696. Count Binary SubstringsGive a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all t... 阅读全文
posted @ 2017-11-01 18:03 link98 阅读(151) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示