- Creating array of 10000000 elements
- Array created (intruder is 615850)!
- Intruder is 615850
- Time 1: 0.039930
- Creating array of 10000000 elements
- Array created (intruder is 6878589)!
- Intruder is 6878589
- Time 2: 0.039849
- Creating array of 10000000 elements
- Array created (intruder is 1179513)!
- Intruder is 1179513
- Time 3: 0.040164
- Creating array of 10000000 elements
- Array created (intruder is 5443723)!
- Intruder is 5443723
- Time 4: 0.040021
- Creating array of 10000000 elements
- Array created (intruder is 5792156)!
- Intruder is 5792156
- Time 5: 0.040024
- Creating array of 10000000 elements
- Array created (intruder is 5213837)!
- Intruder is 5213837
- Time 6: 0.039809
- Creating array of 10000000 elements
- Array created (intruder is 9451671)!
- Intruder is 9451671
- Time 7: 0.046713
- Creating array of 10000000 elements
- Array created (intruder is 6903729)!
- Intruder is 6903729
- Time 8: 0.046839
- Creating array of 10000000 elements
- Array created (intruder is 1059948)!
- Intruder is 1059948
- Time 9: 0.046524
- Creating array of 10000000 elements
- Array created (intruder is 2138564)!
- Intruder is 2138564
- Time 10: 0.046686
- Average time: 0.042656
Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Forum Search
Forum Statistics
UsersTotal Post History
- Posts:
- 78573
- Topics:
- 17964
7-Day Post History
- New Posts:
- 71
- New Topics:
- 36
- Active Topics:
- 38
Our newest member
Other
-
FAQ
All times are UTC [ DST ]
Google Ads
LTD Puzzle 9: Find it
Forum rules
Always post answers in a "Hidecode" tag, so that others have a chance to answer the question too.
Always post answers in a "Hidecode" tag, so that others have a chance to answer the question too.
37 posts • Page 1 of 2 • 1, 2
Please wait...
LTD Puzzle 9: Find it
Given an array of 1001 elements which contains integers from 1 to 1000 inclusive. The numbers are randomly stored in the array. Only one number repeats itself. The candidate has to come up with an efficient solution for finding that duplicate given that you can access the elements of an array only once i.e., you can read the elements of the array only once.
Nicked from here http://www.techinterviews.in/programmin ... tricks/119
Lets make that a bit more interesting shall we.
First create the array randomly and the one number randomly. But use 10 million integers plus one of course. Do this 10 times and show the times it takes to find the number and then the average time. Fastest wins.
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
Re: LTD Puzzle 9: Find it
A slow program on a screaming machine might beat a super-fast program on an outdated machine. So I have an idea to allow for this:
We can pick some likely easy-to-run code (like VB code that can run in any Office application). Anyone who has additional code that they can run on their machine can submit their times as well. Then each submitted program can be benchmarked against these. For example, if you have:
Code A : 10 seconds
Code B : 22.2 seconds
• Someone submits Code C which runs at 45 seconds, and on his machine Code A takes 41 seconds, then you can give him an adjusted score of 11 seconds.
• Someone who can't run Code A or B but can run Code C submits code D. His times are: Code C: 17 seconds, Code D: 13 seconds. Adjusting C to 11 we can get his relative time of 8.4 seconds.
• Similarly, someone who can run Code B but not any of the others can still get benchmarked properly.
I *am* assuming that the various programs will run with approximately equal times, but unless someone can run all the submitted programs on a single machine, I can't think of another way to fairly compare execution times.
I'd also like to point out that with randomness, someone will eventually get lucky and find the duplicate value relatively early in each of the 10 attempts. People can run the 10 searches 10,000 times looking for the shortest execution time and submit only that.
We can pick some likely easy-to-run code (like VB code that can run in any Office application). Anyone who has additional code that they can run on their machine can submit their times as well. Then each submitted program can be benchmarked against these. For example, if you have:
Code A : 10 seconds
Code B : 22.2 seconds
• Someone submits Code C which runs at 45 seconds, and on his machine Code A takes 41 seconds, then you can give him an adjusted score of 11 seconds.
• Someone who can't run Code A or B but can run Code C submits code D. His times are: Code C: 17 seconds, Code D: 13 seconds. Adjusting C to 11 we can get his relative time of 8.4 seconds.
• Similarly, someone who can run Code B but not any of the others can still get benchmarked properly.
I *am* assuming that the various programs will run with approximately equal times, but unless someone can run all the submitted programs on a single machine, I can't think of another way to fairly compare execution times.
I'd also like to point out that with randomness, someone will eventually get lucky and find the duplicate value relatively early in each of the 10 attempts. People can run the 10 searches 10,000 times looking for the shortest execution time and submit only that.
God cries a little bit every time someone builds a database.
-

Emtucifor - Guru

-










- Posts: 2832
- Joined: Fri May 30, 2008 9:30 pm
- Location: California
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
-

Remou - LTD Admin

-










- Posts: 5115
- Joined: Sun Oct 14, 2007 11:26 am
Re: LTD Puzzle 9: Find it
My solution. I had to use numpy because of the dimension of the array. It's written in python, so the performances are not as it was written in C but I've always post my solutions in python and I'll continue along this way 
And this is the output:

Code is hidden, SHOW
And this is the output:
- b3orn
- Apprentice

-
- Posts: 9
- Joined: Thu Jul 17, 2008 3:23 pm
Re: LTD Puzzle 9: Find it
SO linq isn't all that fast but it is a vey short way to find the number.
Here is the code for VB.Net
First the Class
then the Module
And here are the pathetic results.
Here is the code for VB.Net
First the Class
Code is hidden, SHOW
then the Module
Code is hidden, SHOW
And here are the pathetic results.
- Starting filling array
- Making random number
- Random number is: 4721158
- Filling array took: 90 milliseconds
- Shuffeling array
- Shuffeling took: 2033 milliseconds
- Finding the number
- Number found:4721158
- Finding the number took: 19615 milliseconds
- Starting filling array
- Making random number
- Random number is: 6706025
- Filling array took: 74 milliseconds
- Shuffeling array
- Shuffeling took: 2007 milliseconds
- Finding the number
- Number found:670602
- Finding the number took: 20155 milliseconds
- Starting filling array
- Making random number
- Random number is: 9181260
- Filling array took: 65 milliseconds
- Shuffeling array
- Shuffeling took: 1995 milliseconds
- Finding the number
- Number found:9181260
- Finding the number took: 20824 milliseconds
- Starting filling array
- Making random number
- Random number is: 9737667
- Filling array took: 65 milliseconds
- Shuffeling array
- Shuffeling took: 2004 milliseconds
- Finding the number
- Number found:9737667
- Finding the number took: 22090 milliseconds
- Starting filling array
- Making random number
- Random number is: 4721158
- Filling array took: 62 milliseconds
- Shuffeling array
- Shuffeling took: 1952 milliseconds
- Finding the number
- Number found:4721158
- Finding the number took: 21096 milliseconds
- Starting filling array
- Making random number
- Random number is: 9389003
- Filling array took: 59 milliseconds
- Shuffeling array
- Shuffeling took: 1944 milliseconds
- Finding the number
- Number found:9389003
- Finding the number took: 23518 milliseconds
- Starting filling array
- Making random number
- Random number is: 9214280
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1943 milliseconds
- Finding the number
- Number found:9214280
- Finding the number took: 20082 milliseconds
- Starting filling array
- Making random number
- Random number is: 294075
- Filling array took: 62 milliseconds
- Shuffeling array
- Shuffeling took: 1990 milliseconds
- Finding the number
- Number found:294075
- Finding the number took: 21716 milliseconds
- Starting filling array
- Making random number
- Random number is: 6847728
- Filling array took: 62 milliseconds
- Shuffeling array
- Shuffeling took: 1956 milliseconds
- Finding the number
- Number found:6847728
- Finding the number took: 22605 milliseconds
- Starting filling array
- Making random number
- Random number is: 7752800
- Filling array took: 62 milliseconds
- Shuffeling array
- Shuffeling took: 1947 milliseconds
- Finding the number
- Number found:7752800
- Finding the number took: 23195 milliseconds
- Finished
- Average time to find: 21489,6
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
Re: LTD Puzzle 9: Find it
BTW b3orn what is the timescale of your results? seconds? milliseconds? hours?
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
Re: LTD Puzzle 9: Find it
Sorry, they are in seconds 
- b3orn
- Apprentice

-
- Posts: 9
- Joined: Thu Jul 17, 2008 3:23 pm
Re: LTD Puzzle 9: Find it
Ok you beat linq 
But I made a better version.
That is 20 times faster then linq.

But I made a better version.
Code is hidden, SHOW
- Starting filling array
- Making random number
- Random number is: 3641362
- Filling array took: 118 milliseconds
- Shuffeling array
- Shuffeling took: 1977 milliseconds
- Finding the number
- Number found:3641362
- Finding the number took: 874 milliseconds
- Starting filling array
- Making random number
- Random number is: 6149617
- Filling array took: 66 milliseconds
- Shuffeling array
- Shuffeling took: 1947 milliseconds
- Finding the number
- Number found:6149617
- Finding the number took: 896 milliseconds
- Starting filling array
- Making random number
- Random number is: 294075
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1951 milliseconds
- Finding the number
- Number found:294075
- Finding the number took: 889 milliseconds
- Starting filling array
- Making random number
- Random number is: 9214280
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1953 milliseconds
- Finding the number
- Number found:9214280
- Finding the number took: 890 milliseconds
- Starting filling array
- Making random number
- Random number is: 2387626
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1953 milliseconds
- Finding the number
- Number found:2387626
- Finding the number took: 884 milliseconds
- Starting filling array
- Making random number
- Random number is: 2944034
- Filling array took: 59 milliseconds
- Shuffeling array
- Shuffeling took: 1946 milliseconds
- Finding the number
- Number found:2944034
- Finding the number took: 893 milliseconds
- Starting filling array
- Making random number
- Random number is: 1864238
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1951 milliseconds
- Finding the number
- Number found:1864238
- Finding the number took: 889 milliseconds
- Starting filling array
- Making random number
- Random number is: 784443
- Filling array took: 59 milliseconds
- Shuffeling array
- Shuffeling took: 1956 milliseconds
- Finding the number
- Number found:784443
- Finding the number took: 889 milliseconds
- Starting filling array
- Making random number
- Random number is: 9704648
- Filling array took: 63 milliseconds
- Shuffeling array
- Shuffeling took: 1949 milliseconds
- Finding the number
- Number found:9704648
- Finding the number took: 892 milliseconds
- Starting filling array
- Making random number
- Random number is: 3849105
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1946 milliseconds
- Finding the number
- Number found:3849105
- Finding the number took: 892 milliseconds
- Finished
- Average time to find: 888,8
That is 20 times faster then linq.
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
Re: LTD Puzzle 9: Find it
Added a little something and made it even faster.
and allthough this is faster, it is highly variable.
Code is hidden, SHOW
- Starting filling array
- Making random number
- Random number is: 2944034
- Filling array took: 125 milliseconds
- Shuffeling array
- Shuffeling took: 1959 milliseconds
- Finding the number
- Number found:2944034
- Finding the number took: 855 milliseconds
- Starting filling array
- Making random number
- Random number is: 8276188
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1966 milliseconds
- Finding the number
- Number found:8276188
- Finding the number took: 717 milliseconds
- Starting filling array
- Making random number
- Random number is: 3849105
- Filling array took: 59 milliseconds
- Shuffeling array
- Shuffeling took: 1966 milliseconds
- Finding the number
- Number found:3849105
- Finding the number took: 388 milliseconds
- Starting filling array
- Making random number
- Random number is: 8483931
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1965 milliseconds
- Finding the number
- Number found:8483931
- Finding the number took: 114 milliseconds
- Starting filling array
- Making random number
- Random number is: 5626229
- Filling array took: 62 milliseconds
- Shuffeling array
- Shuffeling took: 1973 milliseconds
- Finding the number
- Number found:5626229
- Finding the number took: 681 milliseconds
- Starting filling array
- Making random number
- Random number is: 1864238
- Filling array took: 62 milliseconds
- Shuffeling array
- Shuffeling took: 1965 milliseconds
- Finding the number
- Number found:1864238
- Finding the number took: 373 milliseconds
- Starting filling array
- Making random number
- Random number is: 8657872
- Filling array took: 60 milliseconds
- Shuffeling array
- Shuffeling took: 1970 milliseconds
- Finding the number
- Number found:8657872
- Finding the number took: 830 milliseconds
- Starting filling array
- Making random number
- Random number is: 7262432
- Filling array took: 63 milliseconds
- Shuffeling array
- Shuffeling took: 1976 milliseconds
- Finding the number
- Number found:7262432
- Finding the number took: 704 milliseconds
- Starting filling array
- Making random number
- Random number is: 5452289
- Filling array took: 61 milliseconds
- Shuffeling array
- Shuffeling took: 1970 milliseconds
- Finding the number
- Number found:5452289
- Finding the number took: 778 milliseconds
- Starting filling array
- Making random number
- Random number is: 3292698
- Filling array took: 60 milliseconds
- Shuffeling array
- Shuffeling took: 1965 milliseconds
- Finding the number
- Number found:3292698
- Finding the number took: 572 milliseconds
- Finished
- Average time to find: 601,2
and allthough this is faster, it is highly variable.
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
-

Emtucifor - Guru

-










- Posts: 2832
- Joined: Fri May 30, 2008 9:30 pm
- Location: California
Re: LTD Puzzle 9: Find it
Been playing with this most of the morning. Tried a Python version that was fairly slow, a VBScript version that redefined slow, and the C# methods below. Best one I had appeared to be a Sum method (using the non-threaded option) which came in at 96-103ms running from visual studio (was getting about 30-35ms less running the executable outside the debugger).
And the full code containing a boolean array method, a quicksort method, and the test cases:
My results were (all times in ms):
* Sum2 is actually a boolean table method that I forgot to rename
Code is hidden, SHOW
And the full code containing a boolean array method, a quicksort method, and the test cases:
Code is hidden, SHOW
My results were (all times in ms):
- ------ Sum ------
- 10 Loops of 10,000,000 chunksize (threaded): 117.1875
- 10 Loops of 1,000,000 chunksize (threaded): 126.5625
- 10 Loops of 500,000 chunksize (threaded): 128.125
- 10 Loops of 100,000 chunksize (threaded): 134.375
- 10 Loops of 50,000 chunksize (threaded): 135.9375
- 10 Loops of 10,000 chunksize (threaded): 121.875
- 10 Loops of 10,00 chunksize (threaded): 126.5625
- 10 Loops of 500 chunksize (threaded): 137.5
- 10 Loops of 10,000,000 chunksize (not threaded): 103.125
- 10 Loops of 1,000,000 chunksize (not threaded): 103.125
- 10 Loops of 500,000 chunksize (not threaded): 106.25
- 10 Loops of 100,000 chunksize (not threaded): 101.5625
- 10 Loops of 50,000 chunksize (not threaded): 106.25
- 10 Loops of 10,000 chunksize (not threaded): 93.75
- 10 Loops of 1,000 chunksize (not threaded): 96.875
- 10 Loops of 500 chunksize (not threaded): 96.875
- ------ Sum2 ------
- 10 Loops of 10,000,000 chunksize (threaded): 628.125
- 10 Loops of 1,000,000 chunksize (threaded): 542.1875
- 10 Loops of 500,000 chunksize (threaded): 625
- 10 Loops of 100,000 chunksize (threaded): 637.5
- 10 Loops of 50,000 chunksize (threaded): 629.6875
- 10 Loops of 10,000 chunksize (threaded): 726.5625
- 10 Loops of 1,000 chunksize (threaded): 548.4375
- 10 Loops of 500 chunksize (threaded): 621.875
- 10 Loops of 10,000,000 chunksize (not threaded): 542.1875
- 10 Loops of 1,000,000 chunksize (not threaded): 570.3125
- 10 Loops of 500,000 chunksize (not threaded): 570.3125
- 10 Loops of 100,000 chunksize (not threaded): 637.5
- 10 Loops of 50,000 chunksize (not threaded): 595.3125
- 10 Loops of 10,000 chunksize (not threaded): 532.8125
- 10 Loops of 1,000 chunksize (not threaded): 576.5625
- 10 Loops of 500 chunksize (not threaded): 596.875
- ------ Sort ------
- 10 Loops (not threaded): 1715.625
* Sum2 is actually a boolean table method that I forgot to rename
Um, yeah...I'm going to need you to come in on Saturday -- Bill Lumbergh, Office Space
-

tarwn - LTD Admin

-









- Posts: 3353
- Joined: Fri Oct 12, 2007 11:10 am
- Location: Raleigh, NC, USA
Re: LTD Puzzle 9: Find it
Chrissie's Code on my PC (with latest additions before my prior post - fulloutput is available but hidden to save space): 640.5 ms avg
My full output from one selected set to fulfill the instructions above:
I don't have numpy so I can't run the python one locally. Sorry. (but without numpy it was in the 14s range, if that helps
)
Code is hidden, SHOW
My full output from one selected set to fulfill the instructions above:
Code is hidden, SHOW
I don't have numpy so I can't run the python one locally. Sorry. (but without numpy it was in the 14s range, if that helps
)Um, yeah...I'm going to need you to come in on Saturday -- Bill Lumbergh, Office Space
-

tarwn - LTD Admin

-









- Posts: 3353
- Joined: Fri Oct 12, 2007 11:10 am
- Location: Raleigh, NC, USA
Re: LTD Puzzle 9: Find it
(Edit: Warning, the comment below is a spoiler - hidden by request)
I was thinking about multithreading but I think it will only be really usefull on a multicore systeM;
I was thinking about multithreading but I think it will only be really usefull on a multicore systeM;
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
Re: LTD Puzzle 9: Find it
The first one is basically what the python one does also, unfortunately I didn't notice he had done that until i had started mine, so I had to try some other methods also 
Yeah, my systems are only single core. I'm thinking about going upstairs and trying it on my wife's dual...
Yeah, my systems are only single core. I'm thinking about going upstairs and trying it on my wife's dual...
Um, yeah...I'm going to need you to come in on Saturday -- Bill Lumbergh, Office Space
-

tarwn - LTD Admin

-









- Posts: 3353
- Joined: Fri Oct 12, 2007 11:10 am
- Location: Raleigh, NC, USA
Re: LTD Puzzle 9: Find it
(Edit: Quoted comment was a spoiler, hidden by request)
[hide]
This was a pretty big unhidden spoiler, there.
[hide]
[/hide]Chrissie1 wrote:Clever you added them all up and substracted the totalamount thus giving you the dupe.
This was a pretty big unhidden spoiler, there.
God cries a little bit every time someone builds a database.
-

Emtucifor - Guru

-










- Posts: 2832
- Joined: Fri May 30, 2008 9:30 pm
- Location: California
Re: LTD Puzzle 9: Find it
Here's a solution in java, it uses a boolean operation to find the duplicate
Code is hidden, SHOW
- "C:\Program Files\Java\jdk1.6.0_06\bin\java" -Xms256M -Xmx768M Puzzle09
- Time to create random array: 8578 milliseconds
- Found Duplicate: 7595666
- Time to find duplicate: 33 milliseconds
- Time to create random array: 8811 milliseconds
- Found Duplicate: 1588217
- Time to find duplicate: 33 milliseconds
- Time to create random array: 7935 milliseconds
- Found Duplicate: 8314017
- Time to find duplicate: 31 milliseconds
- Time to create random array: 7824 milliseconds
- Found Duplicate: 3222235
- Time to find duplicate: 31 milliseconds
- Time to create random array: 8367 milliseconds
- Found Duplicate: 8127512
- Time to find duplicate: 30 milliseconds
- Time to create random array: 8434 milliseconds
- Found Duplicate: 3449360
- Time to find duplicate: 30 milliseconds
- Time to create random array: 8071 milliseconds
- Found Duplicate: 1969631
- Time to find duplicate: 33 milliseconds
- Time to create random array: 8059 milliseconds
- Found Duplicate: 2830737
- Time to find duplicate: 39 milliseconds
- Time to create random array: 8252 milliseconds
- Found Duplicate: 6042436
- Time to find duplicate: 30 milliseconds
- Time to create random array: 7820 milliseconds
- Found Duplicate: 6534775
- Time to find duplicate: 30 milliseconds
- Average Time to find the duplicate: 32.0 milliseconds
- shamsm
- Apprentice

-
- Posts: 12
- Joined: Wed Jul 30, 2008 10:09 am
Re: LTD Puzzle 9: Find it
My solution in PHP:
Output:
Code is hidden, SHOW
Output:
- 1. needle is: 1593323, founded: 1593323 (2.03187799454 seconds)
- 2. needle is: 2869263, founded: 2869263 (2.11517190933 seconds)
- 3. needle is: 5696717, founded: 5696717 (2.13595414162 seconds)
- 4. needle is: 2639161, founded: 2639161 (2.15742897987 seconds)
- 5. needle is: 3115540, founded: 3115540 (2.14666700363 seconds)
- 6. needle is: 3790894, founded: 3790894 (2.18299603462 seconds)
- 7. needle is: 1154480, founded: 1154480 (2.16829895973 seconds)
- 8. needle is: 2535401, founded: 2535401 (2.21659994125 seconds)
- 9. needle is: 6805726, founded: 6805726 (2.23850607872 seconds)
- 10. needle is: 1021119, founded: 1021119 (2.24144291878 seconds)
- average time: 2.16349439621 seconds
I try to improve my English language skills. Most things i do better than this.
- tisodotsk
- Apprentice

-

- Posts: 22
- Joined: Fri Aug 08, 2008 12:45 pm
- Location: Bratislava, Slovakia
Re: LTD Puzzle 9: Find it
I am surprised by the "very" big differences between languages. I guess the algorithm is crucial here.
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
Re: LTD Puzzle 9: Find it
I started working on this the other night and then I realized I don't really understand the question. Can you explain what you mean by "create the array randomly"? Does that just mean a random starting value, then take the next 10 million?
Say what you like about the tenets of National Socialism Dude, at least it's an ethos
-

AlexCuse - LTD Admin

-










- Posts: 5264
- Joined: Tue Oct 09, 2007 5:26 pm
- Location: Pennsylvania, US
Re: LTD Puzzle 9: Find it
Nope every number should be in a random place. Or do what most people do. Create an array of 10 milion , add the random number and then shuffle them around so that the numbers are in random order.
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
Re: LTD Puzzle 9: Find it
I think the right way to do this puzzle is the one shamsm, tarwn and I followed. shamsm did a great job enhancing it using a bitwise operator (very good work, are you a c/c++ programmer?)
- b3orn
- Apprentice

-
- Posts: 9
- Joined: Thu Jul 17, 2008 3:23 pm
Re: LTD Puzzle 9: Find it
I'm sure this has some room for optimization (about 3 seconds per pass), but I am just not that good with F# yet. Maybe I will revisit after some more puzzles:
Code is hidden, SHOW
Say what you like about the tenets of National Socialism Dude, at least it's an ethos
-

AlexCuse - LTD Admin

-










- Posts: 5264
- Joined: Tue Oct 09, 2007 5:26 pm
- Location: Pennsylvania, US
Re: LTD Puzzle 9: Find it
b3orn wrote:shamsm did a great job enhancing it using a bitwise operator (very good work, are you a c/c++ programmer?)
Nope a java developer
, I try to post all my solutions in java 
- shamsm
- Apprentice

-
- Posts: 12
- Joined: Wed Jul 30, 2008 10:09 am
Re: LTD Puzzle 9: Find it
The winners for have been determined, finaly!
Peoples Champ: shamsm
LTD Admins Champion - shamsm for the bitwise operator.
Congratulations!
Peoples Champ: shamsm
LTD Admins Champion - shamsm for the bitwise operator.
Congratulations!
pink fuzzy slippers
-

chrissie1 - Senior Guru

-











- Posts: 9107
- Joined: Wed Oct 10, 2007 7:18 pm
- Location: Belgium
37 posts • Page 1 of 2 • 1, 2



LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.