problem in ur test case 2 & 4
The test suite has problems according to RFC 3969 (https://www.rfc-editor.org/rfc/inline-errata/rfc3696.html): there should not be spaces in a domain address, nor can it be made with numbers only. When building a problem of such type, it is best to specify which RFC that you are using as a reference, or if its rules are made up (which should be described).
Case 2 is actually correct, because e-mails cannot be longer than 254 or 256 characters. But case 4 is not, and goes against case 16: both should be true or both should be false (to be consistent at the very least since there cannot be spaces at domains). And as I mentioned, case 14 also goes against the rules for valid e-mail addresses by having a real number as a domain.
Cases 4 and 14 now have a correct_answer of false, per the explanation by Rafael S.T. Vieira.
Which doors are open?
Find the sum of the elements in the "second" diagonal
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Calculate the derivative of a polynomial
Compute LOG(1+X) in natural log
Find my secret function II
Find the maxmum value of N*N Matrix
Hilbert Scan Algorithm
Relation between functions "dec2bin" & "dec2binvec"
Stop a ZigZag scanning N*N Matrix at any diag you want
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office