Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 2 KB

README.md

File metadata and controls

37 lines (20 loc) · 2 KB

string2int Challenge

For anyone who accept this challenge, you have to write the program in any language that can retrieve mixed both numerical and alphabetical character and return only the numerical value in interger format.

For example:

A.

  • Given input is "abc573"
  • The output should be 573 in integer.

B.

  • Given input is "a5b7c3"
  • The output should be 573 in integer.

Rules

  • You must not use any parsing, casting or converting function, either it is built-in or come from the library you use.

  • To start the challenge please fork this repository can create a commit that you accepting the challenge. You have 30 minutes to complete the challenge, but if you cannot make it take your time. Atfer you finish the coding please commit it again, then you will have unlimited of time to write down the explanation of your solution.

Grading Criteria

  • You will be surely score 100 if your solution can passed all the test cases we have.

License

The MIT License

Copyright © 2020, AppMan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.