Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 449 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 449 Bytes

JavaAgony

A java program without control flow other than try...catch and no return or lambdas

Full rules:

You cannot use

  • if
  • else
  • for
  • return
  • do
  • while
  • switch
  • case
  • &&
  • ||
  • ::
  • ?
  • ->

Problem being solved:

There is an array arr, which contains only non-negative numbers. Create the largest number using all of the non-negative numbers of the given array arr.

Example: IN: {35, 1, 9} OUT: 9351