08-24-2005 02:24 PM
08-24-2005 05:25 PM
Alten, correct me if I'm wrong, but this was only supposed to be about speed, right? Performance matters less?
I say this because I can think of 30 seconds solution for problems 2 & 3 (Use sort array and then search array for the former, generate the numbers and use search array on the previous results until you get -1 for the latter).
08-24-2005 06:52 PM
Yes, first one with the correct result on the FP wins.
(Performance counted only indirectly. If your program took 30 seconds to write, but 5 minutes to execute, you probably would loose! ;))
Why would you need "search array" for #2?
Can you find a loop-free version for #1 ? 😮
08-24-2005 06:57 PM
The search was meant to help you find the index of the element. If you only need the value, then it's not needed.
How about using spreadsheet string to array with the chosen word as a delimiter and then looking at the array size?
Another option for number 3 is initializing an array will all the numbers and then using the random number to decide which element to delete from the array.
08-25-2005 01:08 PM
Hello all,
This isn't in response to the coding challenge, but I just wanted to say it was
good to meet and chat with many of you at NI Week this year. Thanks for
coming out!
Travis M
Applications Engineer
National Instruments
08-26-2005 11:12 AM