Prem-Kumar-Dev / hacktoberfest2024-project

Welcome to the Hacktoberfest 2024 beginner coding problems repository! This project is designed for those who want to contribute to open-source while solving basic coding challenges. Whether you are a first-time contributor or looking to practice programming, you're in the right place.
MIT License
8 stars 77 forks source link

Added String_ATOI in Java #62

Closed Raghavendra1729-cell closed 1 month ago

Raghavendra1729-cell commented 1 month ago

This program converts a string to an integer, handling leading spaces, optional signs (+ or -), and numeric digits. It stops at any non-digit character and returns the result, while also handling overflow by capping the value at Integer.MAX_VALUE or Integer.MIN_VALUE if needed.