luckyu1
码龄10年
关注
提问 私信
  • 博客:43,236
    43,236
    总访问量
  • 148
    原创
  • 1,080,902
    排名
  • 2
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2015-05-16
博客简介:

luckyu1的博客

查看详细资料
个人成就
  • 获得0次点赞
  • 内容获得1次评论
  • 获得1次收藏
创作历程
  • 148篇
    2016年
成就勋章
TA的专栏
  • 算法
    60篇
  • -1
  • 10
  • 8
  • 1
  • 7
  • 24
  • 5
  • -2
  • -3
  • 9
  • leetcode
创作活动更多

AI大模型如何赋能电商行业,引领变革?

如何使用AI技术实现购物推荐、会员分类、商品定价等方面的创新应用?如何运用AI技术提高电商平台的销售效率和用户体验呢?欢迎分享您的看法

175人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

leetcode之Intersection of two arrays,delete node in a list, same tree

思路都比较简单,主要就是要代码简洁和做到bug free1.注意size()==02.注意delete3.注意直接实现  和 代码简洁度
原创
发布博客 2016.06.12 ·
323 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode 之reverse string ,Nim game, add digits

add digit启发:注意找规律,多写几个找出数字中的规律
原创
发布博客 2016.06.10 ·
368 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode最后一遍

校招快要开始了,决定来最后刷一遍leetcode找到代码能力。恩 加油
原创
发布博客 2016.06.10 ·
296 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

codeforce之最少加多少能组成一个凸三角形

这是个纯数学规律的题目:只要让最大的那条边小于剩下的所有边之和即可,如果小于等于,只需要将剩下的边的和加到比最大的那个大1即可。
原创
发布博客 2016.06.05 ·
321 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

codeforce之Magic Powder

题目:The term of this problem is the same as the previous one, the only exception — increased restrictions.InputThe first line contains two positive integers n and k (1 ≤ n ≤ 100 000
原创
发布博客 2016.06.03 ·
375 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

codeforce之Bear and Two Paths

题目:Bearland has n cities, numbered 1 through n. Cities are connected via bidirectional roads. Each road connects two distinct cities. No two roads connect the same pair of cities.Bear Li
原创
发布博客 2016.05.31 ·
330 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

codeforce之 Bear and Colors

题目:Bear Limak has n colored balls, arranged in one long row. Balls are numbered 1 through n, from left to right. There are n possible colors, also numbered 1 through n. The i-th ball has c
原创
发布博客 2016.05.31 ·
418 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

codeforce之problems for round

题目:There are n problems prepared for the next Codeforces round. They are arranged in ascending order by their difficulty, and no two problems have the same difficulty. Moreover, there are m 
原创
发布博客 2016.05.31 ·
266 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CF之Recycling Bottles

题目:It was recycling day in Kekoland. To celebrate it Adil and Bera went to Central Perk where they can take bottles from the ground and put them into a recycling bin.We can think Central P
原创
发布博客 2016.05.28 ·
535 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CF之Vasya and String

题目:High school student Vasya got a string of length n as a birthday present. This string consists of letters 'a' and 'b' only. Vasya denotesbeauty of the string as the maximum length of a su
原创
发布博客 2016.05.28 ·
701 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

code force 之 Money transfer

转化为求最多和为0的子数组,其实就是前缀和的次数#include#include#include#include#include#include#include#include#includeusing namespace std;map m;int a[100001];int max(int a, int b) { return a > b ? a : b;}in
原创
发布博客 2016.05.24 ·
529 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

ACM刷题准备

简单搜索搜索进阶Dancing links最短路并查集最小生成树线段树生成树连通图匹配网络流基础dp基础计算几何数论基础kmp后缀树矩阵
原创
发布博客 2016.05.20 ·
556 阅读 ·
0 点赞 ·
0 评论 ·
4 收藏

JAVA面向对象学习

面向对象:1.static成员不能访问非static成员2.对象,引用,指针
原创
发布博客 2016.05.05 ·
301 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

kuangbin带你飞之简单搜索 B,C

很明显的找最短路的问题,很明显的BFS实现,故意写了个DFS,果然超时。。以及目前写代码的速度还是有点慢,要多写了
原创
发布博客 2016.05.05 ·
270 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

lintcode之不同子序列数 + 序列II

不同子序列:很明显是dp, 当位置相等的时候,等于f(i - 1, j - 1) + f(i, j - 1 )否则就是f(i, j - 1)子序列:找打第一个相邻升序,从后向前找到第一个大于的,交换,排序
原创
发布博客 2016.04.27 ·
563 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

lintcode之快速幂

利用乘积的模等于模的乘积再取模的性质(很好证明)同时利用幂运算的分解特性
原创
发布博客 2016.04.25 ·
269 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

编程之美之从无头单链表中删除节点

`1.将data转移 2.将next重置 3.删除节点 4.将指针置为空
原创
发布博客 2016.04.23 ·
288 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

编程之美之字符串移位包含的问题

s2出现在s1经过移位得到的字符串中充要条件是s2出现在S1S1中自己写几个样例就很容易理解了
原创
发布博客 2016.04.23 ·
317 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

编程之美只有加法的面试题

1:枚举个数(个数的大小是有限的,可以进行放缩)num=i + i+1 + i+2 + ....+ i+k-1  一共有k个数。= (i + i+k-1)*k/2=(2*i+k-1)*k/2=k*(i+ (k-1)/2)=k*i + k*(k-1)/2判断条件: num%(k*(k-1)/2)==0 或者 2*num>k*(k-1) 得: ki=num/k;可得出i
原创
发布博客 2016.04.23 ·
270 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

编程之美区间重合判断

主要是首先要进行区间的合并(排序 + 遍历),然后进行二分查找即可
原创
发布博客 2016.04.23 ·
295 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多