leetcode fast power

public class Solution { /** * @param a: A 32bit integer * @param b: A 32bit integer * @param n: A 32bit integer * @return: A...

2018-07-08 16:09:35

阅读数 131

评论数 2


1. 常用的网络结构中,feature_size / kernel_size 的值过小,会导致BN的统计值不稳定,外加上ReLU对信息的一些破坏,很容易倒置kernel学不到任何的东西,发生退化。...

2018-06-15 08:12:52

阅读数 141

评论数 0

75. Find Peak Element

c++ codeclass Solution { public: /* * @param A: An integers array. * @return: return any of peek position. */ int findPeak(vec...

2018-05-30 09:13:18

阅读数 101

评论数 0

Edit Distance

Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.You have the following 3 operations permitt...

2018-04-19 07:54:24

阅读数 166

评论数 0

LeetCode Maximal Square

Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.For example, given the following ma...

2018-04-17 10:49:19

阅读数 105

评论数 0

Climbing Stairs II (使用滚动数组进行优化)

You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl...

2018-04-17 09:28:48

阅读数 80

评论数 0

LeetCode House Robber i问题求解

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping y...

2018-04-17 08:25:50

阅读数 76

评论数 0

LeetCode 407. Trapping Rain Water II

Given an m x n matrix of positive integers representing the height of each unit cell in a 2D elevation map, compute the volume of water it is able to...

2018-04-10 20:32:39

阅读数 79

评论数 0

LeetCode 42. Trapping Rain Water

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining...

2018-04-10 19:26:10

阅读数 67

评论数 0

LeeCode 42. Trapping Rain Water

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining...

2018-04-04 09:39:14

阅读数 64

评论数 0

Word Search

Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where &q...

2018-04-03 22:14:55

阅读数 53

评论数 0

LeetCode 211 Add and Search Word - Data structure design

Design a data structure that supports the following two operations:void addWord(word) bool search(word) search(word) can search a literal word or a r...

2018-04-03 21:55:20

阅读数 59

评论数 0

k Sum II

Your title here...Given n unique integers, number k (1<=k<=n) and target.Find all possible k integers where their sum is target...

2018-04-01 17:39:48

阅读数 69

评论数 0

Implement Trie

Implement a trie with insert, search, and startsWith methods.trie树实现javaclass TrieNode { TrieNode[] children; boolean hasWord; public Tri...

2018-03-29 09:03:44

阅读数 65

评论数 0

Meeting Rooms

线扫描求解Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine if a person cou...

2018-03-26 11:00:45

阅读数 59

评论数 0

Number of Airplanes in the Sky

线扫描问题Given an interval list which are flying and landing time of the flight. How many airplanes are on the sky at most? NoticeIf landing and flying h...

2018-03-26 10:32:37

阅读数 71

评论数 0

Find Peak Element II

There is an integer matrix which has the following features:The numbers in adjacent positions are different.The matrix has n rows and m columns.For a...

2018-03-25 17:31:03

阅读数 94

评论数 0


序号姓名链接1南京大学,周志华主页, LMADA实验室主页2香港理工大学,张磊主页3深圳大学,杨猛主页4哈尔滨工业大学深圳研究生院,徐勇主页5University of Exeter,Yiming Ying个人主页 ,代码主页6浙江大学,蔡登个人主页 ,代码主页7中科院自动化所,向世明个人主页8M...

2018-03-22 15:28:56

阅读数 440

评论数 0

Minimum Size Subarray Sum

Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't...

2018-03-20 09:29:22

阅读数 71

评论数 0

leetcode 2. Add Two Numbers

2. Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of...

2018-03-17 16:29:43

阅读数 64

评论数 0

取消 删除