- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 【刷leetcode,拿Offer-018】2. Add Two Numbers
题目链接题面:2. Add Two NumbersDescriptionHintsSubmissionsDiscussSolutionDiscussPick OneYou are given twonon-emptylinked lists representing two non-negative integers. The digits are sto...
2017-10-25 18:41:38 583
原创 【刷leetcode,拿Offer-011】503. Next Greater Element II
题目链接题面:Add to List503. Next Greater Element IIDescriptionHintsSubmissionsDiscussSolutionDiscussPick OneGiven a circular array (the next element of the last element is the first...
2017-10-21 13:50:05 709
原创 【刷leetcode,拿Offer-013】496. Next Greater Element I(栈应用)
题目链接题面:Add to List496. Next Greater Element IDescriptionHintsSubmissionsDiscussSolutionDiscussPick OneYou are given two arrays(without duplicates)nums1andnums2wherenums1’...
2017-10-21 10:38:59 367
原创 KNN简单实现
KNN(K nearest neighbor Algorithm)原理:取距离上训练数据上最近的K个点的均值作为估计值。简单实现://A general realization of K nearest neighbors Algorithm#include #include #include #include using namespace std; struct ob
2017-10-15 21:20:15 336
原创 【刷leetcode,拿Offer-005】665. Non-decreasing Array
题目链接题面:Add to List665. Non-decreasing ArrayDescriptionHintsSubmissionsDiscussSolutionDiscussPick OneGiven an array withnintegers, your task is to check if it could become non...
2017-10-12 17:01:09 611
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人