不困的四点

  • 首页

  • 分类

  • 标签

  • 归档

  • 关于

  • 公益 404

  • 搜索

[LeetCode]905. Sort Array By Parity

发表于 2019-04-15 | 更新于 2019-05-19 | 分类于 LeetCode | 阅读次数:
字数统计:506 字 | 阅读时长:3 分钟

905. Sort Array By Parity

Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.

You may return any answer array that satisfies this condition.

阅读全文 »

《左耳听风》ARTS打卡计划-week-4

发表于 2019-04-14 | 分类于 ARTS | 阅读次数:
字数统计:297 字 | 阅读时长:1 分钟

ARTS week-4

Algorithm

  • [Leetcode]804. Unique Morse Code Words
  • [Leetcode]929. Unique Email Addresses
  • [Leetcode]595. Big Countries
阅读全文 »

C++ remove erase 用法浅析

发表于 2019-04-12 | 分类于 C++ | 阅读次数:
字数统计:628 字 | 阅读时长:3 分钟

C++ remove erase 用法浅析

remove 用法浅析

写这篇浅析完全是意料之外的,只怪才疏学浅。

刷[Leetcode]929. Unique Email Addresses的时候不能用boost库,一脸懵逼,为了去除整个字符串中的“.”,boost库中就是一句话boost::erase_all(str, ‘.’),但是stl库中没有现成的接口可以使用,求助Google,发现了erase和remove结合使用可以达到目的;

阅读全文 »

[LeetCode]595. Big Countries

发表于 2019-04-11 | 更新于 2019-05-19 | 分类于 LeetCode | 阅读次数:
字数统计:361 字 | 阅读时长:2 分钟

595. Big Countries

今天这道题,是个sql语句的题目,选出符合条件的数据;

阅读全文 »

[LeetCode]929. Unique Email Addresses

发表于 2019-04-09 | 更新于 2019-05-19 | 分类于 LeetCode | 阅读次数:
字数统计:710 字 | 阅读时长:4 分钟

929. Unique Email Addresses

Every email consists of a local name and a domain name, separated by the @ sign.

For example, in alice@leetcode.com, alice is the local name, and leetcode.com is the domain name.

Besides lowercase letters, these emails may contain '.'s or '+'s.

阅读全文 »
1…567…12
不困

不困

58 日志
19 分类
50 标签
© 2015 – 2020 不困
由 Hexo 强力驱动 v3.8.0
|
主题 – NexT.Gemini v7.0.1
本站总访问量:次 | 本站总访客数:人 |
全站共44.2k字