The Wayback Machine - https://web.archive.org/web/20260118184707/https://www.geeksforgeeks.org/videos/sde-sheet-implement-atoi/
September 21, 2023 |960 Views

SDE Sheet - Implement Atoi

  Share   Like
Description
Discussion

This video is part of Strings section under GFG SDE Sheet.

In this video, Our task is to implement the function atoi. The function takes a string(str) as argument and converts it to an integer and returns it.

Note: You are not allowed to use inbuilt function.

Example :

Input:
str = 123
Output: 123

Try it out before watching the implementation of the problem in the video. We recommend watching the video, even if you can solve the problem. You may discover something new. All the best!!!

Do check out:-

Article: https://www.geeksforgeeks.org/write-your-own-atoi/
Problem: https://practice.geeksforgeeks.org/problems/implement-atoi/1
SDE Sheet: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/