December 23, 2018
The largest negative number in array
Threads: For an array of n integers. Find and print the largest negative number in array.
Input: The first line is an integer n. The second line 2 n is an integer array, of numbers separated by spaces.
Output: A negative number is the largest number found. If no negative range, in ra “NOT FOUND”
For example:
input: 3 -4 -3 -2 output: -2
You are not logged in? Log in to Submit Now!
3 Comments
Add a Comment
You must be logged in to post a comment.
anh cập nhật lời giải cho bài này đi anh
Mình sẽ cập nhật sớm nhé.
Có rồi bạn nhé.