Comment on Widest Roman PrimeparentComments−melloclello10yI'd imagine it's not easy to render the text out into Times without UIKit or equivalent? Pretty cool that it has that built in, though.−lisper10yActually, that's pretty easy too in CCL. It has a very nice ObjC bridge.−tosseraccount10y20 bits would do it.−akkartik10yBut would the font make any difference to the answer?−astrange10yIt asks for the widest string in pixels in a proportional font, so the different letters matter.−gpvos10ySince most proportional fonts have somewhat similar widths, probably not. But if you just look at the longest string (or use a non-proportional font) there will be four roman numbers of equal length/width.
Comments
I'd imagine it's not easy to render the text out into Times without UIKit or equivalent? Pretty cool that it has that built in, though.
Actually, that's pretty easy too in CCL. It has a very nice ObjC bridge.
20 bits would do it.
But would the font make any difference to the answer?
It asks for the widest string in pixels in a proportional font, so the different letters matter.
Since most proportional fonts have somewhat similar widths, probably not. But if you just look at the longest string (or use a non-proportional font) there will be four roman numbers of equal length/width.