最新 最热

Leetcode 141 Linked List Cycle

Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using

2018-01-12
1

Leetcode 149 Max Points on a Line

Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 给一个点集,判断在一条直线上的点最多有多少个。枚举每一个点,算其他点和它的斜率,然后用一个unordered_m.....

2018-01-12
1

Leetcode 187 Repeated DNA Sequences

All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to identify ...

2018-01-12
1

Leetcode 205 Isomorphic Strings

Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a...

2018-01-12
1

Leetcode 200 Number of Islands 并查集

Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands ...

2018-01-12
1

LeetCode:1_Two_Sum | 两个元素相加等于目标元素 | Medium

题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two number...

2018-01-11
1

LeetCode:149_Max Points on a line | 寻找一条直线上最多点的数量 | Hard

题目:Max Points on a lineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.这道题需要稍微转变一下思路,用斜率来实现,试想找在同一条直线上的点,怎么......

2018-01-11
1

CNN—pooling层的作用

本文介绍了CNN中pooling层的作用,主要包括使构建更深层次的网络变得可行、使得filters获得更多的全局和contextual(上下文)信息、使训练可行,也可以说使得训练变得更高效、针对深层次的网络结构来说、使得特征map大小和数...

map
2018-01-09
0

HDU-2017 ACM/ICPC Asia Regional Qingdao Online-1008-Chinese Zodiac

该文介绍了如何计算两个字符串之间的最长公共子序列长度,并给出了具体的实现代码。同时,还介绍了如何根据输入的字符串计算出对应的最长公共子序列长度,并输出结果。...

2018-01-09
0

496. Next Greater Element I(Stack-Easy)

该文是关于给定两个数组nums1和nums2,找到所有nums1中的元素对应nums2位置的下一个更大的元素。如果nums1中没有元素,则找不到对应位置的下一个更大元素,返回-1。对于每个元素,需要记录其对应的最大值在nums2中的位置。如...

2018-01-08
1