Page 1 of 1

Coding contest

Posted: Fri Jun 13, 2014 9:42 am
by Mr. Kibernetik
Is anybody interested in having our own coding contest?

If yes, feel free to share your ideas about this.
Contest topics, possible prizes, any ideas are welcome!

Re: Coding contest

Posted: Mon Jun 23, 2014 9:34 am
by Dutchman
Maybe you should pose a problem and ask the users for a solution.
The fastest code and/or the shortest code and/or … will get honour and …
Some examples: http://icpc.baylor.edu/worldfinals/problems

Re: Coding contest

Posted: Mon Jun 23, 2014 10:39 am
by Mr. Kibernetik
Dutchman wrote:Maybe you should pose a problem and ask the users for a solution.
The fastest code and/or the shortest code and/or … will get honour and …
Some examples: http://icpc.baylor.edu/worldfinals/problems
Very nice suggestion :!:

Re: Coding contest

Posted: Sat Aug 23, 2014 10:50 pm
by Henko
Maybe the following (small) problem is a nice contest, also for less experienced programmers:
Given is a string with a number of data (free format, numbers or text), separated by one or more spaces.
Such a string could resemble a record or a C struct.
Write a function which extracts the n'th data element from the string, without leading or trailing blancs.
The string may be empty, may or may not have leading spaces or trailing spaces.
If a$ is the string, the function should look like: res$=word$(a$,num) , where res$ is the num'th data element of a$.
If for any reason the desired data element cannot be extracted, the function should return an empty string.
The SB "split" function must not be used (to easy).
The idea originates from the "just basic" environment.

Re: Coding contest

Posted: Sun Aug 24, 2014 11:56 am
by Mr. Kibernetik
Henko wrote:The SB "split" function must not be used (to easy).
:lol: