登录  | 立即注册

游客您好!登录后享受更多精彩

QQ登录

只需一步,快速开始

查看: 752|回复: 3

向大佬们请教一个题目,完全没有思路,用什么语言都可以*su ...

[复制链接] TA的其它主题
发表于 2019-9-21 07:46:53 | 显示全部楼层 |阅读模式 来自 江苏无锡
向大佬们请教一个题目,完全没有思路,用什么语言都可以
* summary : This method finds the largest common contiguous subarray from two
* sorted arrays. The given arrays are sorted in ascending order. If there are multiple
* arrays with the same length, then return the last array having the maximum length.
* The function should return the array.
* For example:
* a = [1,2,5,6,7,8,9], b = [1,2,3,4,5] will return the output:
* [1,2]
* and
* a = [1,2,3,4,5,6,7,8,9], b = [1,2,5,7,8,9,10] will return the output:
* [7,8,9]
* and
* a = [1,2,3,4,5,6], b = [1,2,5,6,7,8,9] will return the output:
* [5,6]
*
* returns : Array of integers
* return type : int[]
*/
发表于 2019-9-21 21:41:12 | 显示全部楼层 来自 江苏无锡
大佬们求教
回复

使用道具 举报

发表于 2019-9-22 11:33:32 | 显示全部楼层 来自 江苏无锡
加我好友吧
回复

使用道具 举报

发表于 2019-9-22 11:33:32 | 显示全部楼层 来自 江苏无锡
这个给的例子是想干啥,没咋看懂啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|极速版|触屏版|小黑屋|申请友链|极客论坛 - 计算机软硬件与网络

GMT+8, 2026-10-13 21:35 , Processed in 0.073007 second(s), 27 queries .

快速回复 返回顶部 返回列表