avatar
Articles
28
Tags
55
Categories
25
Home
Archives
Tags
Categories
About
Alex's Warm Home词语翻译问题
Home
Archives
Tags
Categories
About

词语翻译问题

Created2022-03-30|Updated2025-05-12|ITLanguageChineseEnglishJapanese
|Word Count:5.9k|Reading Time:20 mins.mins|Post Views:
Author: Alex Hu
Link: https://www.alexhu.one/Language/Japanese/词语翻译问题_2022_03-30_19_02_10/
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
words
Previous
各种语言中的 Enum
C, C++, Java 和 Python 中的 Enum 枚举类是很多编程语言中都有的设计. 它最明显的用途在于给一系列编程中概念相关的但逻辑上在同一层次的事物编号. 大多数编程语言从,枚举类的定义语法类似类, 也就是说它们都将枚举类看成是一个特殊的类。同时, 它们一般允许定义的枚举名称在作用范围内按照整型常量随意使用. 还提供了自定义编号的特性. C 基本语法 enum 枚举类名{ 枚举名1, 枚举名2, ... 枚举名n}; 如果需要自定义编号, 采用枚举名 = 整型常量表达式的形式定义枚举名, 此时下一个枚举名的编号是整型常量表达式 + 1. Java 在 Java 中,枚举类就是一种继承了 java.lang.Enum, 实现了 java.lang.Comparable 的 final 类, 可以定义类能定义的属性和方法. 枚举类可以有构造方法,默认私有. 基本语法 enum 枚举类名{ // 所有实例都必须在开头定义. 默认以public static final修饰. 枚举名1, 枚举名2, ... ...
Next
单调队列
使用单调队列 单调队列是一种主要用于解决滑动窗口类问题的数据结构. 时间复杂度为 O (n). 其原理就是一句话,当队列中前面的数比后面的小 (大) 时,前面的数出队. 实现上,维护一个双向队列, 遍历时仅当一个元素可能成为某区间的最值时才保留它. 代码 import collectionsmonotonous_queue = collections.deque()class Item(object): def __init__(self, i, v): self.index = i self.value = vitems: tuple[Item] = tuple()def front(): return monotonous_queue[0]def back(): return monotonous_queue[-1]for i in range(0, n): if not monotonous_queue.empty() and top().index <= i - length: ...

Comments
GitalkValine
avatar
Alex Hu
这里是Alex Hu用来记录生活的温馨小窝, 希望他能在这里感到平静与幸福.
Articles
28
Tags
55
Categories
25
Follow Me
Announcement
暂时还没有什么要写的
Contents
  1. 1. 易混词
    1. 1.1. 信息领域
  2. 2. 词语翻译问题
    1. 2.1. 汉英
Recent Posts
让 Seagate 等厂商的移动硬盘在 Linux 下正确输出 SMART 信息。
让 Seagate 等厂商的移动硬盘在 Linux 下正确输出 SMART 信息。2025-05-12
树状数组2025-05-12
Install and Configure KVM in ArchLinux2025-05-12
词语翻译问题
词语翻译问题2025-05-12
线段树详解2025-05-12
©2019 - 2025 By Alex Hu
Framework Hexo 7.3.0|Theme Butterfly 5.3.5
喜欢就多坐会儿呗!