Lujing

Notes


  • 首页

  • 标签

  • 分类

  • 归档

  • 搜索

[leetcode]移除链表尾端第n个结点

发表于 2018-09-25 | 分类于 LeetCode
字数统计: 226 | 阅读时长 ≈ 1


Given a linked list, remove the n-th node from the end of list and return its head.
给定链接列表,从列表末尾删除第n个节点并返回其头部。
阅读全文 »

[Leetcode]最长不重复子串

发表于 2018-09-21 | 分类于 LeetCode
字数统计: 427 | 阅读时长 ≈ 1


Given a string, find the length of the longest substring without repeating characters.
给定一个字符串,找到最长子字符串的长度而不重复字符。

阅读全文 »

[Leetcode]水最大容器

发表于 2018-09-20 | 分类于 LeetCode
字数统计: 341 | 阅读时长 ≈ 1


Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.
给定n个非负整数a1,a2,…,an,其中每个表示坐标(i,ai)处的点。 绘制n条垂直线,使得线i的两个端点位于(i,ai)和(i,0)。 找到两条线,它们与x轴一起形成一个容器,这样容器就含有最多的水。

阅读全文 »

[leetcode]两数相加

发表于 2018-09-10 | 分类于 LeetCode
字数统计: 452 | 阅读时长 ≈ 2


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 and return it as a linked list.

You may assume the two numbers do not contain any leading zero, except the number 0 itself
您将获得两个非空链表,表示两个非负整数。 数字以相反的顺序存储,每个节点包含一个数字。 添加两个数字并将其作为链接列表返回。

您可以假设这两个数字不包含任何前导零,除了数字0本身

阅读全文 »

[C++基础]继承

发表于 2018-05-30 | 分类于 c++基础
字数统计: 765 | 阅读时长 ≈ 2


继承
阅读全文 »

[C++基础]初始化和宏定义

发表于 2018-05-28 | 分类于 c++基础
字数统计: 824 | 阅读时长 ≈ 3


初始化,宏定义,常函数和静态成员
阅读全文 »

[C++基础]拷贝构造和重载

发表于 2018-05-27 | 分类于 c++基础
字数统计: 1.4k | 阅读时长 ≈ 5


函数重载和默认参数,拷贝构造,符号重载
阅读全文 »

[C++基础]一些函数

发表于 2018-05-26 | 分类于 c++基础
字数统计: 629 | 阅读时长 ≈ 2


析构函数,构造函数,友元和接口函数等
阅读全文 »

[C++基础]指针和引用

发表于 2018-05-26 | 分类于 c++基础
字数统计: 1.4k | 阅读时长 ≈ 5


指针,引用,引用变量,引用做参数和返回值,指针和引用的区别
阅读全文 »

[C++基础]结构体和类

发表于 2018-05-25 | 分类于 c++基础
字数统计: 447 | 阅读时长 ≈ 1


一些基础知识点,结构体和类理论
阅读全文 »
123
Lujing

Lujing

一个远离文艺的理工科少女

21 日志
5 分类
6 标签
GitHub E-Mail Weibo
推荐阅读
  • LJ-Resume
  • Comet.D
© 2019 Lujing
由 Hexo 强力驱动
本站访客数:
博客全站共18k字