|
|
向大佬们请教一个题目,完全没有思路,用什么语言都可以
* 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[]
*/ |
1、在论坛里发表的文章仅代表作者本人的观点,与本网站立场无关。
2、论坛的所有内容都不保证其准确性,有效性,时间性。阅读本站内容因误导等因素而造成的损失本站不承担连带责任。
3、当政府机关依照法定程序要求披露信息时,论坛均得免责。
4、若因线路及非本站所能控制范围的故障导致暂停服务期间造成的一切不便与损失,论坛不负任何责任。
5、注册会员通过任何手段和方法针对论坛进行破坏,我们有权对其行为作出处理。并保留进步追究其责任的权利。
|