• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






李瑞林

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2015年9月21日

网易游戏 笔试题
摘要: 相当于是买股票问题,整个过程中只允许交易两次left[i]表示第i天左边并且包括第i天的最大收益right[i]表示第i天右边并且包括第i天的最大收益left[i]+right[i]的最大值即为整个股票问题的最大收益#include #include using namespace std;int ... 阅读全文
posted @ 2015-09-21 07:51 李瑞林 阅读(345) 评论(0) 推荐(0)
 
网易游戏笔试题
摘要: 该题目的要求是 判断str1和str2能否归并成为str3,递归的思路是正确的bool helper(string &str_x,string &str_y,int x,int y){ while(x>nums; string str1,str2,str3; for(int... 阅读全文
posted @ 2015-09-21 07:32 李瑞林 阅读(679) 评论(0) 推荐(0)