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






canexjtuzju

记录
 
 

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

随笔分类 -  LeetCode

上一页 1 2 3

 
LeetCode--Single Number
摘要:1 class Solution { 2 public: 3 int singleNumber(int A[], int n) { 4 int i; 5 int ans = 0; 6 for(i = 0 ; i < n ; ++i) 7 ... 阅读全文
posted @ 2014-07-30 15:49 canexjtuzju 阅读(114) 评论(0) 推荐(0)
LeetCode--Reverse Linked List II
摘要:题目链接:https://oj.leetcode.com/problems/reverse-linked-list-ii/思路:由于题目给的条件比较宽松,需要考虑的几种情况就是:m=n;m=1;n=lenght;其他mnext == NULL)13 return head;1... 阅读全文
posted @ 2014-07-18 15:34 canexjtuzju 阅读(165) 评论(0) 推荐(0)
LeetCode--Reverse Words in a String
摘要:class Solution {public: void reverseWords(string &s) { int len = s.length(); if(len == 0) return; vector res; ... 阅读全文
posted @ 2014-07-15 16:08 canexjtuzju 阅读(149) 评论(0) 推荐(0)
 

上一页 1 2 3