[algogeeks] Re: Generating a Sequence Subject To Constraints

2006-02-03 Thread ricky
there are two components to your algorithm. the first component is (as gene pointed out) is to generate a random number. the second component is to verify the violations for the generated integers. the violation verfication is a function of two things: the previous sequence of numbers and the set

[algogeeks] rules for round3 code4bill

2006-02-03 Thread prick
hi everyone Rules for round 3 code4bill f. Headers/Libraries: You can use the standard libraries headers that come with the compiler set. Please don't use any system calls or WIN32 calls. can u tell what type of project should i start with in visual c++ 20005 ? 1: CLR console application 2:

[algogeeks] Re: rules for round3 code4bill

2006-02-03 Thread Prunthaban Kanthakumar
Use console application System calls are calls which modify the process,etc (Like fork() in unix) Win32 calls - (Accessing win32 api - Don't include windows.h) On 2/3/06, prick [EMAIL PROTECTED] wrote: hi everyoneRules for round 3 code4billf.Headers/Libraries: You can use the standard libraries

[algogeeks] Re: An interesting problem from Code4bill second round

2006-02-03 Thread Prunthaban Kanthakumar
Hi all, Sorry for the late reply. Anyway here is the solution... I want to note down 2 facts... 1. With 1 one the maximum reachable is 1 2. Any sequence of move is exactly reversible. You just have to toggle the bits in reverse order. Now the solution. With n ones.. 1. Use first n-1 ones

[algogeeks] code4bill round 3 bonus marks?

2006-02-03 Thread prick
is there any criteria for bonus marks in this round or simply correct answers will be give marks with no time constraint ? please tell

[algogeeks] Books download

2006-02-03 Thread elnahrawi
http://www.books-download.com All for free

[algogeeks] Duplicate Removal

2006-02-03 Thread raja
Design and implement an efficient algorithm to remove consecutive 1char, 2char, 3 char... so on recurrences in dictionary words. For example, abbabccbc first will become ababcbc, then become abc. Similarly, abcaab will become abcab and but stays as it is after that.