Challenge: Convert a String Into an Integer

Apply what you’ve learned about strings in the coding exercises in this lesson.

Problem statement

In this challenge, you have to implement the stringToInt function.

int stringToInt(String str);

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy