Skip to content

Competitive-Coding-10 solutions - #461

Open
kalyan-ng22 wants to merge 1 commit into
super30admin:masterfrom
kalyan-ng22:master
Open

Competitive-Coding-10 solutions#461
kalyan-ng22 wants to merge 1 commit into
super30admin:masterfrom
kalyan-ng22:master

Conversation

@kalyan-ng22

Copy link
Copy Markdown

No description provided.

@super30admin

Copy link
Copy Markdown
Owner
  • problem1.java: Excellent job! The solution is optimal and correctly implemented. The approach of capturing all positive slopes is intuitive and efficient.
  • problem2.java: The solution is mostly correct and efficient. However, the assumption that bufferedVal > 0 indicates the presence of the next element might fail if the iterator contains non-positive values. Consider using a boolean flag to track if bufferedVal is valid instead of relying on the value itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants