- 博客(10)
- 资源 (1)
- 收藏
- 关注
转载 快速理解bootstrap,bagging,boosting-三个概念
https://blog.csdn.net/u014114990/article/details/50948079 http://www.chioka.in/differences-between-l1-and-l2-as-loss-function-and-regularization/ 1 booststraping:意思是依靠你自己的资源,称为自助法,它是一种有放回的抽样方法,它是非参数...
2018-07-25 05:49:33 445
原创 Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. Example Given linked list: 1->2->3->4->5->null, and n = 2. After removing the second node from the ...
2018-07-20 08:05:20 79
原创 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 159
原创 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 372
原创 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 227
原创 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 183
原创 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 147
原创 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 171
原创 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 124
原创 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 148
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人