会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
鹏鹏哥哥
2019年1月10日
c++ stl sort 自定义排序函数cmp要遵循 strict weak ordering
摘要: 满足strict weak ordering的运算符能够表达其他所有的逻辑运算符(logical operator): <(a, b) : (a < b) <=(a, b): !(b < a) ==(a, b): !(a < b) && !(b < a) !=(a, b) : (a < b) ||
阅读全文
posted @ 2019-01-10 18:30 鹏鹏哥哥
阅读(221)
评论(0)
推荐(0)
编辑
2019年1月3日
spring boot 包jar运行
摘要: win根目录下执行 mvn install 生成 可运行jar使用java -jar jar名字 执行项目 ps aux|grep demo.jar 查看进程 kill -9 processid 杀掉进程重启服务
阅读全文
posted @ 2019-01-03 00:09 鹏鹏哥哥
阅读(147)
评论(0)
推荐(0)
编辑
2019年1月2日
windows上传文件到linux云服务器上
摘要: 安装putty,将pscp.exe移到 C:\Windows\System32 目录下。 在cmd 中执行,pscp -l rot -pw [password] -ls [ip]:/opt 查看目录 传输文件 pscp 本地文件目录 用户名@[ip]:/opt 例如 pscp f:\demo\tar
阅读全文
posted @ 2019-01-02 20:21 鹏鹏哥哥
阅读(498)
评论(0)
推荐(0)
编辑
2018年11月14日
最少硬币数目的问题
摘要: 题目:给n种硬币,每种无限多个,问组成m最少需要多少个? 动态规划 dp[i]表示当价值为i时的数目,则dp[i]=min(dp[i-a[j]]+1,dp[i])
阅读全文
posted @ 2018-11-14 21:16 鹏鹏哥哥
阅读(590)
评论(0)
推荐(0)
编辑
2018年10月25日
leetcode 415 两个字符串相加
摘要: string addstring(string s1,string s2) { string ans=""; int f=0; for(int i=s1.length()-1,j=s2.length()-1;i>=0||j>=0;i--,j--) { int x=i<0?0:s1[i]-'0'; int y=j<0?0:s2[j]-...
阅读全文
posted @ 2018-10-25 12:46 鹏鹏哥哥
阅读(200)
评论(0)
推荐(0)
编辑
2018年7月29日
Leetcode 600 不含连续1的非负整数
摘要: 给定一个正整数 n,找出小于或等于 n 的非负整数中,其二进制表示不包含 连续的1 的个数。 例如:
阅读全文
posted @ 2018-07-29 23:45 鹏鹏哥哥
阅读(1133)
评论(0)
推荐(0)
编辑
2018年5月14日
淘宝的推荐系统 计算之道2A
摘要: 小明刚刚入职淘宝,老大给他交代了一个简单的任务,实现一个简易的商品推荐系统。 这个商品推荐系统的需求如下: 一共有 n 件商品可以被推荐,他们的编号分别为 1 到 n。每件商品都有一个价格,编号为 i的商品价格为 pi 元。 现在需要给用户推荐尽可能多的商品,但是要保证按照编号上升的顺序给用户依次
阅读全文
posted @ 2018-05-14 15:42 鹏鹏哥哥
阅读(454)
评论(0)
推荐(0)
编辑
2018年3月30日
网易19实习生面试
摘要: https://www.nowcoder.com/test/9763997/summary 牛牛找实习生 #include<iostream>#include<cstring>#include<algorithm>#include<cstdio>#include<set>#include<map>#
阅读全文
posted @ 2018-03-30 12:06 鹏鹏哥哥
阅读(208)
评论(0)
推荐(0)
编辑
弹珠游戏
摘要: import java.awt.*;import java.awt.event.*;class Marble extends Thread{ Table table=null; int x,y,xdir,ydir; public Marble (Table _table,int _x,int _y,
阅读全文
posted @ 2018-03-30 11:30 鹏鹏哥哥
阅读(125)
评论(0)
推荐(0)
编辑
2018年3月25日
网易面试
摘要: 建dp[i][j]以长度i结尾为j的方案数 转自//https://blog.csdn.net/u010045971/article/details/77188110//长度为i,以j结尾#include<iostream>#include<cstring>#include<algorithm>#i
阅读全文
posted @ 2018-03-25 23:06 鹏鹏哥哥
阅读(140)
评论(0)
推荐(0)
编辑
下一页
公告
导航
博客园
首页
新随笔
新文章
联系
订阅
管理