Since i liked the KodeJam so much i want to start a (almost) daily challenge. Everyone can enter a challenge.
There a three rules:
No asking for aia-files.
Only one challenge a day
The title of the challenge topic should always be the same except the number should be increased by one.
My idea is that someone gives one solution to a challenge without telling the challenge.
Users who want to enter their solution have to identify the challenge and then make their version and post the blocks here.
No price, no reward, except the one that you have learned something new and that you had fun solving the challenge.
Let’s give it a try:
This can be done much better. I have a different solution with more then 80 blocks less. I will post that tommorow.
Let’s see who takes up the challenge.
@Peter you really did go out of your way to write some spaghetti code there
I’m trying to rewrite this, and I’m confused Peter.
and I’m confused Peter.
What makes you confused? Do you recognize what the code is doing?
Yes I do, but it’s doing something else which I’m having much trouble mimicking
. I’m moving on, I have to make functional extensions and fix my current bugs LOL
Does this do the job?
(It is totally untested
, so do let me know if there are any bugs)
here is another solution
That’s not exactly what it should do but you are halfway there.
I got it…
If letter is in lowercase then it will be uppercase and so on.
This is the one i made. Didn’t want to use the split blok in the example because it could give things away. Almost the same as
@Vishwas procedure. Putting it in a procedure is much better. I will do that for the next challenges.
this method can work in detecting foul word, by creating a list of bad words like
@Peter do… correct if im wrong with my expectation
I don’t think so.
The procedure basically just flips the case of all characters in a given text. So “HeLLo wOrlD” becomes “hEllO WoRLd”
It was only 1/3 solution, because the three types of texts (by case) are
DOES NOT WORK
DOES NOT WORK
Edit: Considered again and got why you was saying halfway solution: there is 50% chance a character gets into its opposite case.
Well, this is another way … I’m sorry to use other AI because I don’t have a computer now and I also had trouble logging in by phone.
But I insisted that I enter the challenge
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.