V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  JasonLaw  ›  全部回复第 6 页 / 共 36 页
回复总数  713
1 ... 2  3  4  5  6  7  8  9  10  11 ... 36  
339 天前
回复了 n2l 创建的主题 问与答 关于 Java 中 protected 的使用疑问
这种问题问 ChatGPT 最好了。

In Java, the protected keyword is a visibility modifier that can be applied to class members (fields, methods, and nested classes) to restrict their access to the class itself, its subclasses, and other classes in the same package.

More specifically, when a class member is declared as protected, it can be accessed by:

The class itself
Any subclass of the class, even if the subclass is in a different package
Any other class in the same package as the class
可以发一下来源链接吗?
https://i.imgur.com/ZmYC2bA.png

```python
class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
def gen_permutations(nums) -> List[List[int]]:
if len(nums) == 1:
return [nums]
permutations = []
for i in range(len(nums)):
for p in gen_permutations(nums[0:i] + nums[i + 1:]):
permutations.append([nums[i]] + p)
return permutations

res = gen_permutations(nums)
return res
```
@featureoverload #3 谢谢,不过可以优化成`all(c in 'aeiou' for c in (x, y))`
@NessajCN #1 对,下面的 for loop 可以替换为 lost comprehension
361 天前
回复了 Dream95 创建的主题 程序员 裸辞之后的重学 CS 之路
加油
2023-03-08 09:29:24 +08:00
回复了 pksyqcj 创建的主题 职场话题 面试紧张患者,希望求一个前端小哥,互相帮助面试模拟
其实很多 discord server 里面就有 mock interview channel ,比如这个 https://discord.com/channels/788914859235606558/976949178984964167
2023-02-24 08:50:45 +08:00
回复了 xwh201314 创建的主题 求职 简历修改和模拟面试
我可以做免费的 coding interview ,需要的话可以联系我(主页有 telegram )。
2023-02-16 17:37:10 +08:00
回复了 baptismOfTime 创建的主题 程序员 一棵关于树节点变色的问题,欢迎感兴趣的大佬们讨论
我觉得你应该说明“不同操作发生的次数”,这会影响最佳方案。
2023-02-11 09:30:27 +08:00
回复了 Maxwells8 创建的主题 微软 收到邮件,带 ChatGPT 的新版 Bing 可以用了!
还没收到🤐
2023-02-08 10:37:07 +08:00
回复了 JasonLaw 创建的主题 程序员 有谁使用上了新版的 Bing?
@gabezhao #16 看错了,你说的是预约上,我以为你是用上了。😅我已经是预约上的
2023-02-08 09:57:47 +08:00
回复了 JasonLaw 创建的主题 程序员 有谁使用上了新版的 Bing?
@gabezhao #2 一直刷预约上新版 bing ?刷新页面?
2023-02-07 11:05:39 +08:00
回复了 fdgdbr 创建的主题 程序员 idea 里面的 terminal 不会用了
应该根本就不是 IntelliJ IDEA 的问题,是你使用什么 shell 的问题。
2023-02-07 11:00:54 +08:00
回复了 fdgdbr 创建的主题 程序员 idea 里面的 terminal 不会用了
其实你 Google 一下就知道了
2023-02-03 09:17:35 +08:00
回复了 ccworker 创建的主题 酷工作 [招聘远程全职] Java 后端开发工程师
工资不高,还是现在就是这样?
2023-02-01 09:45:11 +08:00
回复了 JasonLaw 创建的主题 程序员 LeetCode 1695. Maximum Erasure Value 疑问
@chitaotao #3 我傻了😅 因为 sum(window)每次都会从 l 开始,会有很多不必要的工作,但是维护多一个 window_sum 就不会。
2023-02-01 08:27:14 +08:00
回复了 JasonLaw 创建的主题 程序员 LeetCode 1695. Maximum Erasure Value 疑问
@chitaotao #3 从头指的是从 index 0 开始?
1 ... 2  3  4  5  6  7  8  9  10  11 ... 36  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2664 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 15:15 · PVG 23:15 · LAX 08:15 · JFK 11:15
Developed with CodeLauncher
♥ Do have faith in what you're doing.