Skip to content

feat: add find max/min in array solution in Java - #98

Open
Hemapriya-10 wants to merge 2 commits into
tripti-gupta700:mainfrom
Hemapriya-10:feature/find-max-min-array-java
Open

feat: add find max/min in array solution in Java#98
Hemapriya-10 wants to merge 2 commits into
tripti-gupta700:mainfrom
Hemapriya-10:feature/find-max-min-array-java

Conversation

@Hemapriya-10

Copy link
Copy Markdown

🔗 Related Issue

Closes #7


📝 What did you do?

Added a Java solution to find the maximum and minimum elements in an array using linear traversal. The solution runs in O(n) time and O(1) space and includes sample test cases.


🗂️ Type of Change

  • ✨ New solution / feature
  • 🐛 Bug fix
  • 📝 Documentation update
  • 🧹 Code cleanup / refactor

✅ Self-Review Checklist

  • My code runs without errors
  • I followed the folder structure from the README
  • I added comments/docstrings explaining my logic
  • My branch name is descriptive
  • I linked the issue above
  • I haven't modified unrelated files

📸 Screenshots / Output (if applicable)

Output:

Screenshot 2026-06-05 113747

💬 Anything else?

This is my first contribution to the repository in solving DSA problems. Feedback and suggestions are welcome.

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.

Add Find Max/Min in Array solution | Any language | Arrays |

1 participant