Coding contest

Post Reply
User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Coding contest

Post 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!

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Coding contest

Post 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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Coding contest

Post 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 :!:

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: Coding contest

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Coding contest

Post by Mr. Kibernetik »

Henko wrote:The SB "split" function must not be used (to easy).
:lol:

Post Reply