An N-number is a unique registration assigned by the Federal Aviation Administration (FAA) to every civil aircraft operating in the United States. Think of it as the aviation equivalent of a license plate. N-Numbers consist of a series of alphanumeric characters. U.S. registration numbers may not exceed five characters in addition to the standard U.S. registration prefix letter N. These characters may be:
- One to five numbers (e.g. N12345)
- One to four numbers followed by one letter (e.g. N1234Z)
- One to three numbers followed by two letters (e.g. N123AZ)
In addition there are the following restrictions:
- The first character must be a number 1 through 9 (e.g. N012C is invalid)
- The number cannot contain the letters 'O' or 'I' to avoid confusion with numbers '0' and '1' (e.g. N45O is invalid)
Given an N-number, return true if it is valid and false if it is not.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
Check if an FAA N-Number is Valid
4 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!