avatar
扭来扭去又来了# pets - 心有所宠
T*n
1
Implement a function that will find the most recent common ancestor of any
two commits from a given commit graph. The commit graph is represented as a
String[] called commits containing all commit IDs in sorted date order (most
recent first) and a String[][] called parents. The parent IDs for the
commit ID at index i can be found at parents[i]. The last item in the
parents array is always null since this represents the parent of the root
commit. For example, the following commit graph:
E - F
/ \
A -B - C - D - G
will be represented using:
String[] commits = {"G", "F", "E", "D", "C", "B", "A"};
String[][] parents ={{"F","D"},{"E"}, {"B"}, {"C"}, {"B"}, {"A"}, null};
If one commit is an ancestor of the other, return the commit that is the
ancestor
avatar
l*o
2
请忽略背景。。。
avatar
T*n
3
O(n)实现
avatar
t*g
4
我最小化了只听到在说话,没看到画面
avatar
N*t
5

哈哈哈哈哈
比我家那个销魂多了

【在 l*****o 的大作中提到】
: 请忽略背景。。。
avatar
N*t
6

我只看到画面没听到声音

【在 t*****g 的大作中提到】
: 我最小化了只听到在说话,没看到画面
avatar
b*i
7
为什么?

【在 t*****g 的大作中提到】
: 我最小化了只听到在说话,没看到画面
avatar
f*n
8
赞这个享受的样子

【在 l*****o 的大作中提到】
: 请忽略背景。。。
avatar
I*s
9
你摄影技术真高,这么大动静,竟然镜头都不怎么晃
avatar
l*8
10
只听懂了狗, 五花肉和拖鞋.
avatar
w*o
11
好久没听上海话了
avatar
A*a
12
你爸真好啊,老帮你琢磨吃的。明天的都准备好了。
被他说的,我下个月要去吃杭州菜。
addy很有耐心。。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。