Skip to content

Commit 9948f96

Browse files
committed
update: 添加问题“3508.设计路由器”的代码(并更新其题解) (#1136)
cpp - AC,76.25%,44.45% Signed-off-by: LetMeFly666 <[email protected]>
1 parent b435989 commit 9948f96

File tree

6 files changed

+358
-1
lines changed

6 files changed

+358
-1
lines changed

.commitmsg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cpp - AC,5.42%,31.93%
1+
cpp - AC,76.25%,44.45%

Codes/3508-implement-router.cpp

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* @Author: LetMeFly
3+
* @Date: 2025-09-20 16:10:20
4+
* @LastEditors: LetMeFly.xyz
5+
* @LastEditTime: 2025-09-20 17:38:56
6+
*/
7+
#if defined(_WIN32) || defined(__APPLE__)
8+
#include "_[1,2]toVector.h"
9+
#endif
10+
11+
/*
12+
FIFO: 一个数组一个指针
13+
是否重复:一个哈希表
14+
Find:哈希表+有序集合
15+
16+
啊,我不想写了
17+
*/
18+
inline void hash_combine(size_t &seed, size_t h) {
19+
seed ^= h + 0x9e3779b97f4a7c15ULL + (seed << 6) + (seed >> 2);
20+
}
21+
22+
struct TupleHash {
23+
size_t operator()(const tuple<int, int, int>& t) const noexcept {
24+
size_t seed = 0;
25+
hash_combine(seed, hash<int>{}(get<0>(t)));
26+
hash_combine(seed, hash<int>{}(get<1>(t)));
27+
hash_combine(seed, hash<int>{}(get<2>(t)));
28+
return seed;
29+
}
30+
};
31+
32+
struct TupleEq {
33+
bool operator()(const tuple<int, int, int>& a, const tuple<int, int, int>& b) const noexcept { // 记得const noexcept(好难记)
34+
return a == b;
35+
}
36+
};
37+
38+
class Router {
39+
private:
40+
vector<tuple<int, int, int>> fifo;
41+
int fifoLeft, fifoRight, memoryLimit;
42+
unordered_set<tuple<int, int, int>, TupleHash, TupleEq> already;
43+
unordered_map<int, pair<vector<int>, int>> finder; // destance -> <[timestamp], 有效范围>
44+
45+
void removePacket() { // remove fifoLeft,不判断是否为空
46+
tuple<int, int, int> toRemove = fifo[fifoLeft];
47+
already.erase(toRemove);
48+
finder[get<1>(toRemove)].second++;
49+
fifoLeft = (fifoLeft + 1) % (memoryLimit + 1);
50+
}
51+
public:
52+
Router(int memoryLimit) {
53+
this->memoryLimit = memoryLimit;
54+
fifo.resize(memoryLimit + 1); // 多开一个区分空和满
55+
fifoLeft = fifoRight = 0;
56+
}
57+
58+
bool addPacket(int source, int destination, int timestamp) {
59+
tuple<int, int, int> package = tuple(source, destination, timestamp);
60+
if (already.count(package)) {
61+
return false;
62+
}
63+
already.insert(package);
64+
if ((fifoRight + 1) % (memoryLimit + 1) == fifoLeft) { // remove fifo[fifoLeft]
65+
removePacket();
66+
}
67+
fifo[fifoRight] = package;
68+
fifoRight = (fifoRight + 1) % (memoryLimit + 1);
69+
finder[destination].first.push_back(timestamp);
70+
return true;
71+
}
72+
73+
vector<int> forwardPacket() {
74+
if (fifoLeft == fifoRight) {
75+
return {};
76+
}
77+
auto [source, destination, timeStamp] = fifo[fifoLeft];
78+
removePacket();
79+
return {source, destination, timeStamp};
80+
}
81+
82+
int getCount(int destination, int startTime, int endTime) {
83+
auto&& [timeStamps, startIdx] = finder[destination];
84+
return upper_bound(timeStamps.begin() + startIdx, timeStamps.end(), endTime) - lower_bound(timeStamps.begin() + startIdx, timeStamps.end(), startTime);
85+
}
86+
};
87+
88+
/**
89+
* Your Router object will be instantiated and called as such:
90+
* Router* obj = new Router(memoryLimit);
91+
* bool param_1 = obj->addPacket(source,destination,timestamp);
92+
* vector<int> param_2 = obj->forwardPacket();
93+
* int param_3 = obj->getCount(destination,startTime,endTime);
94+
*/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,7 @@
10271027
|3439.重新安排会议得到最多空余时间I|中等|<a href="https://leetcode.cn/problems/reschedule-meetings-for-maximum-free-time-i/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2025/07/13/LeetCode%203439.%E9%87%8D%E6%96%B0%E5%AE%89%E6%8E%92%E4%BC%9A%E8%AE%AE%E5%BE%97%E5%88%B0%E6%9C%80%E5%A4%9A%E7%A9%BA%E4%BD%99%E6%97%B6%E9%97%B4I/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/149317430" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/reschedule-meetings-for-maximum-free-time-i/solutions/3722937/letmefly-3439zhong-xin-an-pai-hui-yi-de-r3t9e/" target="_blank">LeetCode题解</a>|
10281028
|3442.奇偶频次间的最大差值I|简单|<a href="https://leetcode.cn/problems/maximum-difference-between-even-and-odd-frequency-i/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2025/06/10/LeetCode%203442.%E5%A5%87%E5%81%B6%E9%A2%91%E6%AC%A1%E9%97%B4%E7%9A%84%E6%9C%80%E5%A4%A7%E5%B7%AE%E5%80%BCI/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/148570777" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/maximum-difference-between-even-and-odd-frequency-i/solutions/3697605/letmefly-3442qi-ou-pin-ci-jian-de-zui-da-nwwx/" target="_blank">LeetCode题解</a>|
10291029
|3459.最长V形对角线段的长度|困难|<a href="https://leetcode.cn/problems/length-of-longest-v-shaped-diagonal-segment/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2025/08/31/LeetCode%203459.%E6%9C%80%E9%95%BFV%E5%BD%A2%E5%AF%B9%E8%A7%92%E7%BA%BF%E6%AE%B5%E7%9A%84%E9%95%BF%E5%BA%A6/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/151050078" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/length-of-longest-v-shaped-diagonal-segment/solutions/3768545/letmefly-3459zui-chang-v-xing-dui-jiao-x-gu8q/" target="_blank">LeetCode题解</a>|
1030+
|3508.设计路由器|中等|<a href="https://leetcode.cn/problems/implement-router/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2025/09/20/LeetCode%203508.%E8%AE%BE%E8%AE%A1%E8%B7%AF%E7%94%B1%E5%99%A8/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/151901838" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/implement-router/solutions/3787451/letmefly-3508she-ji-lu-you-qi-stltao-stl-ehkf/" target="_blank">LeetCode题解</a>|
10301031
|3516.找到最近的人|简单|<a href="https://leetcode.cn/problems/find-closest-person/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2025/09/04/LeetCode%203516.%E6%89%BE%E5%88%B0%E6%9C%80%E8%BF%91%E7%9A%84%E4%BA%BA/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/151184074" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/find-closest-person/solutions/3772009/letmefly-3516zhao-dao-zui-jin-de-ren-ji-8rlbz/" target="_blank">LeetCode题解</a>|
10311032
|3541.找到频率最高的元音和辅音|简单|<a href="https://leetcode.cn/problems/find-most-frequent-vowel-and-consonant/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2025/09/13/LeetCode%203541.%E6%89%BE%E5%88%B0%E9%A2%91%E7%8E%87%E6%9C%80%E9%AB%98%E7%9A%84%E5%85%83%E9%9F%B3%E5%92%8C%E8%BE%85%E9%9F%B3/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/151653999" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/find-most-frequent-vowel-and-consonant/solutions/3780744/letmefly-3541zhao-dao-pin-lu-zui-gao-de-yv5vs/" target="_blank">LeetCode题解</a>|
10321033
|剑指Offer0047.礼物的最大价值|简单|<a href="https://leetcode.cn/problems/li-wu-de-zui-da-jie-zhi-lcof/" target="_blank">题目地址</a>|<a href="https://blog.letmefly.xyz/2023/03/08/LeetCode%20%E5%89%91%E6%8C%87%20Offer%2047.%20%E7%A4%BC%E7%89%A9%E7%9A%84%E6%9C%80%E5%A4%A7%E4%BB%B7%E5%80%BC/" target="_blank">题解地址</a>|<a href="https://letmefly.blog.csdn.net/article/details/129408765" target="_blank">CSDN题解</a>|<a href="https://leetcode.cn/problems/li-wu-de-zui-da-jie-zhi-lcof/solutions/2155672/letmefly-jian-zhi-offer-47li-wu-de-zui-d-rekb/" target="_blank">LeetCode题解</a>|
Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
---
2+
title: 3508.设计路由器:STL套STL——有什么需求就设计什么数据结构
3+
date: 2025-09-20 17:40:53
4+
tags: [题解, LeetCode, 中等, 设计, 队列, 数组, 哈希表, set, map, 二分查找, 有序集合]
5+
categories: [题解, LeetCode]
6+
---
7+
8+
# 【LetMeFly】3508.设计路由器:STL套STL——有什么需求就设计什么数据结构
9+
10+
力扣题目链接:[https://leetcode.cn/problems/implement-router/](https://leetcode.cn/problems/implement-router/)
11+
12+
<p>请你设计一个数据结构来高效管理网络路由器中的数据包。每个数据包包含以下属性:</p>
13+
14+
<ul>
15+
<li><code>source</code>:生成该数据包的机器的唯一标识符。</li>
16+
<li><code>destination</code>:目标机器的唯一标识符。</li>
17+
<li><code>timestamp</code>:该数据包到达路由器的时间戳。</li>
18+
</ul>
19+
20+
<p>实现 <code>Router</code> 类:</p>
21+
22+
<p><code>Router(int memoryLimit)</code>:初始化路由器对象,并设置固定的内存限制。</p>
23+
24+
<ul>
25+
<li><code>memoryLimit</code> 是路由器在任意时间点可以存储的 <strong>最大</strong> 数据包数量。</li>
26+
<li>如果添加一个新数据包会超过这个限制,则必须移除 <strong>最旧的</strong> 数据包以腾出空间。</li>
27+
</ul>
28+
29+
<p><code>bool addPacket(int source, int destination, int timestamp)</code>:将具有给定属性的数据包添加到路由器。</p>
30+
31+
<ul>
32+
<li>如果路由器中已经存在一个具有相同 <code>source</code>、<code>destination</code> 和 <code>timestamp</code> 的数据包,则视为重复数据包。</li>
33+
<li>如果数据包成功添加(即不是重复数据包),返回 <code>true</code>;否则返回 <code>false</code>。</li>
34+
</ul>
35+
36+
<p><code>int[] forwardPacket()</code>:以 FIFO(先进先出)顺序转发下一个数据包。</p>
37+
38+
<ul>
39+
<li>从存储中移除该数据包。</li>
40+
<li>以数组 <code>[source, destination, timestamp]</code> 的形式返回该数据包。</li>
41+
<li>如果没有数据包可以转发,则返回空数组。</li>
42+
</ul>
43+
44+
<p><code>int getCount(int destination, int startTime, int endTime)</code>:</p>
45+
46+
<ul>
47+
<li>返回当前存储在路由器中(即尚未转发)的,且目标地址为指定 <code>destination</code> 且时间戳在范围 <code>[startTime, endTime]</code>(包括两端)内的数据包数量。</li>
48+
</ul>
49+
50+
<p><strong>注意</strong>:对于 <code>addPacket</code> 的查询会按照 <code>timestamp</code> 的递增顺序进行。</p>
51+
52+
<p>&nbsp;</p>
53+
54+
<p><strong class="example">示例 1:</strong></p>
55+
56+
<div class="example-block">
57+
<p><strong>输入:</strong><br />
58+
<span class="example-io">["Router", "addPacket", "addPacket", "addPacket", "addPacket", "addPacket", "forwardPacket", "addPacket", "getCount"]<br />
59+
[[3], [1, 4, 90], [2, 5, 90], [1, 4, 90], [3, 5, 95], [4, 5, 105], [], [5, 2, 110], [5, 100, 110]]</span></p>
60+
61+
<p><strong>输出:</strong><br />
62+
<span class="example-io">[null, true, true, false, true, true, [2, 5, 90], true, 1] </span></p>
63+
64+
<p><strong>解释:</strong></p>
65+
<code>Router router = new Router(3);</code> // 初始化路由器,内存限制为 3。<br />
66+
<code>router.addPacket(1, 4, 90);</code> // 数据包被添加,返回 True。<br />
67+
<code>router.addPacket(2, 5, 90);</code> // 数据包被添加,返回 True。<br />
68+
<code>router.addPacket(1, 4, 90);</code> // 这是一个重复数据包,返回 False。<br />
69+
<code>router.addPacket(3, 5, 95);</code> // 数据包被添加,返回 True。<br />
70+
<code>router.addPacket(4, 5, 105);</code> // 数据包被添加,<code>[1, 4, 90]</code> 被移除,因为数据包数量超过限制,返回 True。<br />
71+
<code>router.forwardPacket();</code> // 转发数据包 <code>[2, 5, 90]</code> 并将其从路由器中移除。<br />
72+
<code>router.addPacket(5, 2, 110);</code> // 数据包被添加,返回 True。<br />
73+
<code>router.getCount(5, 100, 110);</code> // 唯一目标地址为 5 且时间在 <code>[100, 110]</code>&nbsp;范围内的数据包是 <code>[4, 5, 105]</code>,返回 1。</div>
74+
75+
<p><strong class="example">示例 2:</strong></p>
76+
77+
<div class="example-block">
78+
<p><strong>输入:</strong><br />
79+
<span class="example-io">["Router", "addPacket", "forwardPacket", "forwardPacket"]<br />
80+
[[2], [7, 4, 90], [], []]</span></p>
81+
82+
<p><strong>输出:</strong><br />
83+
<span class="example-io">[null, true, [7, 4, 90], []] </span></p>
84+
85+
<p><strong>解释:</strong></p>
86+
<code>Router router = new Router(2);</code> // 初始化路由器,内存限制为 2。<br />
87+
<code>router.addPacket(7, 4, 90);</code> // 返回 True。<br />
88+
<code>router.forwardPacket();</code> // 返回 <code>[7, 4, 90]</code>。<br />
89+
<code>router.forwardPacket();</code> // 没有数据包可以转发,返回 <code>[]</code>。</div>
90+
91+
<p>&nbsp;</p>
92+
93+
<p><strong>提示:</strong></p>
94+
95+
<ul>
96+
<li><code>2 &lt;= memoryLimit &lt;= 10<sup>5</sup></code></li>
97+
<li><code>1 &lt;= source, destination &lt;= 2 * 10<sup>5</sup></code></li>
98+
<li><code>1 &lt;= timestamp &lt;= 10<sup>9</sup></code></li>
99+
<li><code>1 &lt;= startTime &lt;= endTime &lt;= 10<sup>9</sup></code></li>
100+
<li><code>addPacket</code>、<code>forwardPacket</code> 和 <code>getCount</code> 方法的总调用次数最多为 <code>10<sup>5</sup></code>。</li>
101+
<li>对于 <code>addPacket</code> 的查询,<code>timestamp</code> 按递增顺序给出。</li>
102+
</ul>
103+
104+
105+
106+
## 解题方法:STL套STL
107+
108+
首先拆解需求,无非以下三个:
109+
110+
1. FIFO;
111+
2. 判断一个packet是否已经存在;
112+
3. 查找指定destination的所有包中时间戳在`[s, e]`中的有多少个。
113+
114+
让我们逐个分析破解之,有什么需求就设计什么数据结构。
115+
116+
**FIFO**
117+
118+
首先对于第一个需求,当路由器中数据包数量已经达到memoryLimit个时,新来的数据包会挤掉最早加入的数据包。
119+
120+
很简单,使用一个队列就行。如果想效率更高点,也可以使用数组模拟队列(容量多开一个来区分队列是满是空,两个指针指向队列第一个元素下标和最后一个元素下标的下一个下标)。
121+
122+
由于使用了多个数据结构,所以有元素出队时记得更新其他数据结构中的内容。
123+
124+
**判断一个packet是否已经存在**
125+
126+
这个需求来自新加入包时是返回true还是false。这个也简单,使用一个哈希表判断路由器中都有哪些包就好了。
127+
128+
**查找指定destination的所有包中时间戳在`[s, e]`中的有多少个**
129+
130+
这个相对复杂一点。所好在于,题目给定数据满足添加addPacket的timestamp是递增的。
131+
132+
> 最后那句“注意”我也没看懂,也不知道到底是同destination的包timestamp递增还是所有包整体上timestamp递增,反正无所谓,就当成“针对这道题随便操作,只要你所涉及到的数据包都是timestamp递增的”就好了。
133+
134+
好吧,既然给定的数据包都是timestamp递增的了,那么范围查询就容易实现了。
135+
136+
既然查询的范围是指定的destination,那么我们就简历一个哈希表finder,把键设置为destination好了。finder[destination]是所有目标地址为destination的数据包。
137+
138+
这些数据包怎么存储呢?使用一个vector存放每个数据包的timestamp就可以了,新来数据包就直接push到vector后面,就能实现vector中的数据包是天然按照timestamp递增的,就能使用二分法在log级别的时间内找到时间戳在`[s, e]`中的数据包有多少个了。
139+
140+
这就解决了?等下,数据包还能被移除呢!怎么办,好说,再使用一个整数startIdx记录vector中没被移除的数据包下标是从哪个开始的就好了。
141+
142+
> 相当于移除数据包时,在针对需求3设计的结构体中,并没有真正移除,而是把“有效范围指针”右移了一位。实际设计中可别这样!内存分分钟爆炸。
143+
144+
### 时空复杂度分析
145+
146+
+ 时间复杂度:add和forward $O(1)$,count $(\log memoryLimit)$
147+
+ 空间复杂度$O(memoryLimit)$
148+
149+
### AC代码
150+
151+
#### C++
152+
153+
```cpp
154+
/*
155+
* @Author: LetMeFly
156+
* @Date: 2025-09-20 16:10:20
157+
* @LastEditors: LetMeFly.xyz
158+
* @LastEditTime: 2025-09-20 17:38:56
159+
*/
160+
#if defined(_WIN32) || defined(__APPLE__)
161+
#include "_[1,2]toVector.h"
162+
#endif
163+
164+
/*
165+
FIFO: 一个数组一个指针
166+
是否重复:一个哈希表
167+
Find:哈希表+有序集合
168+
169+
啊,我不想写了
170+
*/
171+
inline void hash_combine(size_t &seed, size_t h) {
172+
seed ^= h + 0x9e3779b97f4a7c15ULL + (seed << 6) + (seed >> 2);
173+
}
174+
175+
struct TupleHash {
176+
size_t operator()(const tuple<int, int, int>& t) const noexcept {
177+
size_t seed = 0;
178+
hash_combine(seed, hash<int>{}(get<0>(t)));
179+
hash_combine(seed, hash<int>{}(get<1>(t)));
180+
hash_combine(seed, hash<int>{}(get<2>(t)));
181+
return seed;
182+
}
183+
};
184+
185+
struct TupleEq {
186+
bool operator()(const tuple<int, int, int>& a, const tuple<int, int, int>& b) const noexcept { // 记得const noexcept(好难记)
187+
return a == b;
188+
}
189+
};
190+
191+
class Router {
192+
private:
193+
vector<tuple<int, int, int>> fifo;
194+
int fifoLeft, fifoRight, memoryLimit;
195+
unordered_set<tuple<int, int, int>, TupleHash, TupleEq> already;
196+
unordered_map<int, pair<vector<int>, int>> finder; // destance -> <[timestamp], 有效范围>
197+
198+
void removePacket() { // remove fifoLeft,不判断是否为空
199+
tuple<int, int, int> toRemove = fifo[fifoLeft];
200+
already.erase(toRemove);
201+
finder[get<1>(toRemove)].second++;
202+
fifoLeft = (fifoLeft + 1) % (memoryLimit + 1);
203+
}
204+
public:
205+
Router(int memoryLimit) {
206+
this->memoryLimit = memoryLimit;
207+
fifo.resize(memoryLimit + 1); // 多开一个区分空和满
208+
fifoLeft = fifoRight = 0;
209+
}
210+
211+
bool addPacket(int source, int destination, int timestamp) {
212+
tuple<int, int, int> package = tuple(source, destination, timestamp);
213+
if (already.count(package)) {
214+
return false;
215+
}
216+
already.insert(package);
217+
if ((fifoRight + 1) % (memoryLimit + 1) == fifoLeft) { // remove fifo[fifoLeft]
218+
removePacket();
219+
}
220+
fifo[fifoRight] = package;
221+
fifoRight = (fifoRight + 1) % (memoryLimit + 1);
222+
finder[destination].first.push_back(timestamp);
223+
return true;
224+
}
225+
226+
vector<int> forwardPacket() {
227+
if (fifoLeft == fifoRight) {
228+
return {};
229+
}
230+
auto [source, destination, timeStamp] = fifo[fifoLeft];
231+
removePacket();
232+
return {source, destination, timeStamp};
233+
}
234+
235+
int getCount(int destination, int startTime, int endTime) {
236+
auto&& [timeStamps, startIdx] = finder[destination];
237+
return upper_bound(timeStamps.begin() + startIdx, timeStamps.end(), endTime) - lower_bound(timeStamps.begin() + startIdx, timeStamps.end(), startTime);
238+
}
239+
};
240+
241+
/**
242+
* Your Router object will be instantiated and called as such:
243+
* Router* obj = new Router(memoryLimit);
244+
* bool param_1 = obj->addPacket(source,destination,timestamp);
245+
* vector<int> param_2 = obj->forwardPacket();
246+
* int param_3 = obj->getCount(destination,startTime,endTime);
247+
*/
248+
```
249+
250+
> 同步发文于[CSDN](https://letmefly.blog.csdn.net/article/details/151901838)和我的[个人博客](https://blog.letmefly.xyz/),原创不易,转载经作者同意后请附上[原文链接](https://blog.letmefly.xyz/2025/09/20/LeetCode%203508.%E8%AE%BE%E8%AE%A1%E8%B7%AF%E7%94%B1%E5%99%A8/)哦~
251+
>
252+
> 千篇源码题解[已开源](https://github.com/LetMeFly666/LeetCode)
253+
254+
ios26更新好烫!

Solutions/Other-English-LearningNotes-SomeWords.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,11 @@ categories: [自用]
14461446
|impurity|n. 不纯之物,杂质|
14471447
|||
14481448
|emigrant|n. 移民<br/>adj. (向国外)移居的,侨居的|
1449+
|||
1450+
|barge|n. 驳船,平底货船<br/>v. 猛撞,乱冲,闯|
1451+
|heartily|adv. 尽情地|
1452+
|||
1453+
|outermost|adj. 最外边的,最远的|
14491454

14501455
+ 这个web要是能设计得可以闭眼(完全不睁眼)键盘控制背单词就好了。
14511456
+ 也许可以加个AI用最近词编故事功能(返回接口中支持标注所使用单词高亮?)

Solutions/Other-Japanese-LearningNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,13 @@ xx型
167167
|返品(へんぴん)|退货|
168168
|捨て(すて)||
169169
|交換(こうかん)|更换|
170+
|着替え(きかえ)|换衣服|
170171
|払い(はらい)||
171172
|返す(かえす)|还(huán)|
172173
|貸し(かし)|借(给)|
173174
|借り(かり)|借(来)|
174175
|渡し(わたし)||
176+
|落(おと)||
175177
|聞き(きき)||
176178
|読み(よみ)|阅读|
177179
|歌い(うたい)||
@@ -602,6 +604,7 @@ xx型
602604
|電池(でんち)|电池|
603605
|サイズ(size)|型号|
604606
|がら|图案|
607+
|ロッカールーム(locker room)|更衣室|
605608
|||
606609
|プール|游泳池|
607610
|ふる|浴室|

0 commit comments

Comments
 (0)