Oct 15 2016 10:56pm
Oct 16 2016 01:49am
Oct 16 2016 03:22am
Quote
i used boolean equal method and solved this problem
no one won the reward :bonk:
first, i'm glad you were able to solve your issue within a few hours. (seriously. no sarcasm)
second, i dont know where you live, but that's 11pm on a saturday night in US East coast. i think most of the regulars here live in this time zone or close to it. expecting someone to rush to your aid at 2am sunday morning probably isn't realistic. you gotta be patient and wait a couple days.
third, 200 fg isn't significant. i think most of the regulars here already work full time in the field. if your goal is to pay people to do things for you, you'd have to offer something on par to what they're already getting paid to do.
with that said, what is the actual requirement? if you have to use an array (as opposed to an array list or other data structure that supports dynamic sizing), then i'm not clear how you'll avoid the second loop. as you mentioned, you have to know the size first before you can add to it. adding to an arraylist then converting to an array after still uses multiple loops internally. you can create the array with the same length of the original, but then you'll have nulls in there.