python
betty1121
这个作者很懒,什么都没留下…
展开
-
172. Remove Element
172. Remove ElementGiven an array and a value, remove all occurrences of that value in place and return the new length.The order of elements can be changed, and the elements after the new length don't...原创 2018-07-12 16:06:07 · 156 阅读 · 0 评论 -
40. Implement Queue by Two Stacks
DescriptionAs the title described, you should only use two stacks to implement a queue's actions.The queue should support push(element), pop() and top() where pop is pop the first(a.k.a front) ele...转载 2018-09-15 13:55:47 · 162 阅读 · 0 评论 -
35. Reverse Linked List
DescriptionReverse a linked list.ExampleFor linked list 1->2->3, the reversed linked list is 3->2->1ChallengeReverse it in-place and in one-passclass Solution: """ @pa...原创 2018-09-01 08:59:41 · 226 阅读 · 0 评论 -
165. Merge Two Sorted Lists
DescriptionMerge two sorted (ascending) linked lists and return it as a new sorted list. The new sorted list should be made by splicing together the nodes of the two lists and sorted in ascending or...原创 2018-09-01 08:25:38 · 134 阅读 · 0 评论 -
python:pandas使用sql
pandasqlfrom pandasql import sqldffrom sklearn.datasets import load_irisiris = load_iris()print iris.DESCRprint iris.feature_namesprint iris.data[:10]print iris.data.shapeimport recolumns ...原创 2018-08-26 09:15:36 · 921 阅读 · 0 评论 -
leetcode: 20. Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all valid bu...原创 2018-02-03 00:46:12 · 112 阅读 · 0 评论 -
快速理解bootstrap,bagging,boosting-三个概念
https://blog.csdn.net/u014114990/article/details/50948079http://www.chioka.in/differences-between-l1-and-l2-as-loss-function-and-regularization/1 booststraping:意思是依靠你自己的资源,称为自助法,它是一种有放回的抽样方法,它是非参数...转载 2018-07-25 05:49:33 · 457 阅读 · 0 评论 -
495. Implement Stack
495. Implement StackImplement a stack. You can use any data structure inside a stack except stack itself to implement it.class Stack: """ @param: x: An integer @return: nothing """ ...原创 2018-07-13 09:22:55 · 168 阅读 · 0 评论 -
219. Insert Node in Sorted Linked List
Insert a node in a sorted linked list.ExampleGiven list = 1->4->6->8 and val = 5.Return 1->4->5->6->8.class Solution: """ @param head: The head of linked list. @param ...原创 2018-07-13 08:15:51 · 384 阅读 · 0 评论 -
225. Find Node in Linked List
Find a node with given value in a linked list. Return null if not exists.ExampleGiven 1->2->3 and value = 3, return the last node.Given 1->2->3 and value = 4, return null.class Solution: ...原创 2018-07-12 17:25:05 · 240 阅读 · 0 评论 -
483. Convert Linked List to Array List
Convert a linked list to an array list.ExampleGiven 1->2->3->null, return [1,2,3]class Solution: """ @param head: the head of linked list. @return: An integer list """ def...原创 2018-07-12 16:29:12 · 190 阅读 · 0 评论 -
521. Remove Duplicate Numbers in Array
Given an array of integers, remove the duplicate numbers in it.You should:Do it in place in the array.Move the unique numbers to the front of the array.Return the total number of the unique numbers.Ex...原创 2018-07-12 16:19:23 · 155 阅读 · 0 评论 -
415. Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.Example"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a palindrome.Ch...原创 2018-07-12 16:09:57 · 179 阅读 · 0 评论 -
53. Reverse Words in a String
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".class Solution: """ @param: s: A string @return: A string """ ...原创 2018-07-12 16:07:40 · 127 阅读 · 0 评论 -
执行 tensorboard --logdir logs之后遇到的浏览器中输入http://localhost:6006 网址打不开的问题
https://blog.csdn.net/sinat_28442665/article/details/81076600转载 2018-11-07 19:33:05 · 3975 阅读 · 0 评论