penpen wrote: ↑26 Nov 2021 07:36
You should also check against code injection inputs like 'test=123" & echo(' with a big enough length like 10.
I only found one reliable way to check whether the input string is empty.
I'm not sure if i should post it here as it may spoil the fun out of it for others to discover that for themselves.
I personally don't plan to participate, though i solved that task (for fun) - i suspect the batch only solutions to be pretty similar.
(You also could initialize 'zero' and 'one' without beeing dependent on the existence of other values.)
Indeed, and apart from some since resolved syntax errors, so far so good with regards to submissions abilities to resist code injection.
I had hoped people would refrain from posting for the suggested timeframe, however, since that hasn't happened I've already submitted y own solution. I'd expect given some of the approaches you mention the methods used in it would indeed be reasonably similar to your own.
I'm still very interested to see batch hybrid solutions, but am doubtful theres a significant enough pool of people who have both the knowledge to script batch hybrids and the interest in participating.
penpen wrote: ↑26 Nov 2021 07:36
Btw @T3RRY another question:
Do we need to check if the the bounds of the given integer is within [0, 8191] or if that integer wasn't given at all (empty, like for example the string)?
In case the answer is yes, how to act in case it's bigger (for example print as many as possible even if greater than 8291, only up to 8191, or don't print anything at all)?
The 8191 limit is the maximum I will be testing to. If the method of input used to take the string input does not support this string length, I will test to the maximum string length supported by the form of input. Participants may take it upon themselves to restrict the value of the Integer input to the maximum value supported by the input method of the string, however they are not required to.
There is no need to cater for:
- Input Numbers exceeding 8191
- Negative input numbers
- input order being reversed
In case you need any further clarfication of the accompaning note: "The program must be able to cope with empty inputs ( terminate without output )
- Inputs if provided will always be provided in string / integer order"
- If either input is empty, the program should Terminate or show no output prior to completing.
- Both inputs may be empty, The string may be empty or the Integer may be empty, however:
- While a number, as a combination of ASCII characters in the stated range may be input as the string, the string will never be supplied as the input for the Integer.