java的汇编编码解决方案

h43kikqp  于 2021-06-26  发布在  Java
关注(0)|答案(0)|浏览(138)

关闭。这个问题需要细节或清晰。它目前不接受答案。
**想改进这个问题吗?**通过编辑这个帖子来添加细节并澄清问题。

三天前关门了。
改进这个问题
我知道这是个愚蠢的问题。但是如何使用java解决这个问题呢。我在学习java,所以当我对数组使用.push()时,它不起作用。提示如下:

You are given an array of integers and an integer K as arguments. Return a new array containing only integers that are K elements from the end of the array.

Assume that the argument array will always be at least integer K in size.

Requirements
Must return an array of integers
Must handle both negative and positive integers
Example #1
solve([1,2,3,4], 2)
> [3, 4]

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题