Added a comment for general direction of the solution
Implemented LIS with debug print statements.
Implemented LDS with debug statements. LIS is not checking the weight of the index instead of the index
Refactor to check LIS and LDS in the same for loop
Replaced an if check with Math.max for clarity
Removed a temporary variable that was only used once.
Combined two conditionals into a single conditional
Added README.md
Updated documentation
Added README.md file. TLE.