akshitagit / akshitagit/CPP

Choose Numbers

Open
#10 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
504
Forks
436
PR merge metrics
No merged PRs in 30d

Description

You are given an array of integers A.
You need to tell whether you can choose three numbers such that a+b>=c.

Input Format
First line consists of number of integers N. next line consists of N space separated integers.

Constraints
1 <= N <= 10^5

Output Format
YES or NO

Sample Input
5
1 2 3 4 9
Sample Output
YES
Explanation
you can choose 1+3 >= 4

Solve the question and raise the Pull Requests.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.