- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 Leetcode 152. Maximum Product Subarray
Given an integer arraynums, find the contiguous subarray within an array (containing at least one number) which has the largest product.Example 1:Input: [2,3,-2,4]Output: 6Explanation:[2,3] h...
2019-03-29 11:47:16 96
原创 Leetcode 31. Next Permutation
Implementnext permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible o...
2019-03-29 06:12:30 106
原创 Keras 可视化
Keras可视化需要安装pydot和graphviz,需要先安装python graphviz,再安装软件graphvizWindowswindows下安装比较容易出问题,在我的电脑上使用pip安装不成功,使用conda安装比较简单1.安装graphviz软件https://graphviz.gitlab.io/_pages/Download/Download_windows.ht...
2019-03-28 00:09:27 124
原创 Leetcode 30. Substring with Concatenation of All Words
You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concatenation of each word inwordsexactly once and wi...
2019-03-26 10:08:48 89
原创 Leetcode 29. Divide Two Integers
Given two integersdividendanddivisor, divide two integers without using multiplication, division and mod operator.Return the quotient after dividingdividendbydivisor.The integer division sho...
2019-03-26 06:57:47 97
原创 Leetcode 28. Implement strStr()
ImplementstrStr().Return the index of the first occurrence of needle in haystack, or-1if needle is not part of haystack.Example 1:Input: haystack = "hello", needle = "ll"Output: 2Example...
2019-03-25 13:13:40 103
原创 Leetcode 27. Remove Element
Given an arraynumsand a valueval, remove all instances of that valuein-placeand return the new length.Do not allocate extra space for another array, you must do this bymodifying the input arra...
2019-03-25 12:15:56 122
原创 Leetcode 26. Remove Duplicates from Sorted Array
Given a sorted arraynums, remove the duplicatesin-placesuch that each element appear onlyonceand return the new length.Do not allocate extra space for another array, you must do this bymodifyi...
2019-03-24 08:15:12 137
原创 Leetcode 25:Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.kis a positive integer and is less than or equal to the length of the linked list. If the number of ...
2019-03-24 07:40:55 159
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人