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

想起来的名字

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2017年3月5日

26. Remove Duplicates from Sorted Array★

摘要: 题目内容: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra sp 阅读全文

posted @ 2017-03-05 15:50 想起来的名字 阅读(75) 评论(0) 推荐(0)

21. Merge Two Sorted Lists★

摘要: 题目内容:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 题目分 阅读全文

posted @ 2017-03-05 11:23 想起来的名字 阅读(100) 评论(0) 推荐(0)

20. Valid Parentheses ★

摘要: 题目内容: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close i 阅读全文

posted @ 2017-03-05 11:04 想起来的名字 阅读(104) 评论(0) 推荐(0)

14. Longest Common Prefix ★

摘要: 题目内容:Write a function to find the longest common prefix string amongst an array of strings 题目分析:本题目利用字符串数组中的一个字符串作为参考,数组中的所有字符串都和该字符串进行对比,找出所有字符串开头出现字 阅读全文

posted @ 2017-03-05 00:18 想起来的名字 阅读(104) 评论(0) 推荐(0)

2017年3月4日

13. Roman to Integer ★

摘要: 题目内容: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 题目分析:罗马数字向阿拉伯数字的转换情况如下: 1、M=1000 D=5 阅读全文

posted @ 2017-03-04 23:32 想起来的名字 阅读(161) 评论(0) 推荐(0)

7. Reverse Integer Add to List★

摘要: 题目内容: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 题目分析:反转的方法很简单,重点在于判断溢出的问题,下面给出了两种方法。 方法一: 判断溢出方法:在执行完 阅读全文

posted @ 2017-03-04 22:11 想起来的名字 阅读(133) 评论(0) 推荐(0)

1. Two Sum★

摘要: 题目内容:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would ha 阅读全文

posted @ 2017-03-04 21:45 想起来的名字 阅读(134) 评论(0) 推荐(0)

 
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3