梨一只
码龄10年
关注
提问 私信
  • 博客:2,689
    2,689
    总访问量
  • 14
    原创
  • 420,748
    排名
  • 0
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2015-06-03
博客简介:

baidu_28707641的博客

查看详细资料
个人成就
  • 获得0次点赞
  • 内容获得0次评论
  • 获得0次收藏
创作历程
  • 10篇
    2018年
  • 5篇
    2017年
成就勋章
TA的专栏
  • leetcode
    11篇
  • python
    11篇
  • 数据结构
    10篇
  • PAT
    3篇
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Java实现反转链表

反转链表图解/*public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; }}*/public class Solution { public ListNode ReverseList(ListNode ...
原创
发布博客 2018.06.27 ·
116 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

726. Number of Atoms

Given a chemical formula (given as a string), return the count of each atom. An atomic element always starts with an uppercase character, then zero or more lowercase letters, representing the name. ...
原创
发布博客 2018.04.12 ·
204 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

535. Encode and Decode TinyURL

TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http://tinyurl.com/4e9iAk. Design the encode and deco...
翻译
发布博客 2018.03.28 ·
195 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

771. Jewels and Stones

You’re given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the sto...
原创
发布博客 2018.03.28 ·
137 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

768. Max Chunks To Make Sorted II

This question is the same as “Max Chunks to Make Sorted” except the integers of the given array are not necessarily distinct, the input array could be up to length 2000, and the elements could be up t...
原创
发布博客 2018.03.28 ·
192 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

442. Find All Duplicates in an Array

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
原创
发布博客 2018.03.28 ·
110 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

561. Array Partition I

Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possib...
原创
发布博客 2018.03.27 ·
104 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1016. 部分A+B

正整数A的“DA(为1位整数)部分”定义为由A中所有DA组成的新整数PA。例如:给定A = 3862767,DA = 6,则A的“6部分”PA是66,因为A中有2个6。 现给定A、DA、B、DB,请编写程序计算PA + PB。 输入格式: 输入在一行中依次给出A、DA、B、DB,中间以空格分隔,其中0 < A, B < 1010。 输出格式: 在一行中输出PA + PB的...
原创
发布博客 2018.03.23 ·
110 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1011. A+B和C

给定区间[-231, 231]内的3个整数A、B和C,请判断A+B是否大于C。 输入格式: 输入第1行给出正整数T(<=10),是测试用例的个数。随后给出T组测试用例,每组占一行,顺序给出A、B和C。整数间以空格分隔。 输出格式: 对每组测试用例,在一行中输出“Case #X: true”如果A+B>C,否则输出“Case #X: false”,其中X是测试用例的编号(从...
原创
发布博客 2018.03.22 ·
157 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1001.害死人不偿命的(3n+1)猜想

卡拉兹(Callatz)猜想: 对任何一个自然数n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把(3n+1)砍掉一半。这样一直反复砍下去,最后一定在某一步得到n=1。卡拉兹在1950年的世界数学家大会上公布了这个猜想,传说当时耶鲁大学师生齐动员,拼命想证明这个貌似很傻很天真的命题,结果闹得学生们无心学业,一心只证(3n+1),以至于有人说这是一个阴谋,卡拉兹是在蓄意延缓美国数学界教学与科...
原创
发布博客 2018.03.22 ·
771 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Median of Two Sorted Arrays

There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). Example 1: nums1 = [1, 3]
原创
发布博客 2017.12.06 ·
116 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

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 have exactly one solution, and you may not use the same e
原创
发布博客 2017.12.06 ·
114 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. Examples: Given “abcabcbb”, the answer is “abc”, which the length is 3. Given “bbbbb”, the answer is “b”, with
原创
发布博客 2017.12.01 ·
131 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Add Two Numbers

Description You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers
原创
发布博客 2017.11.28 ·
116 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

欢迎使用CSDN-markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
原创
发布博客 2017.11.28 ·
115 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多