Skip to content

qand90/java_2_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Task array

Given an array of integers X check if adding 1 to any of the elements in array would make it possible to retrieve this element value as a result of summing any other two elements in array.

Example:

  • X={1,3,7,3,5} -> return true, because for X[4]+1=X[1]+X[3]: 5+1=3+3
  • X={1,4,10} -> return false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages