Peter
(Moderator)
September 13, 2019, 7:30pm
#1
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.
11 Likes
Vishwas
(Vishwas Adiga)
September 13, 2019, 7:37pm
#3
@Peter you really did go out of your way to write some spaghetti code there
5 Likes
hammerhai
(Nathan)
September 13, 2019, 7:43pm
#5
I’m trying to rewrite this, and I’m confused Peter.
Peter
(Moderator)
September 13, 2019, 7:44pm
#6
What makes you confused? Do you recognize what the code is doing?
hammerhai
(Nathan)
September 13, 2019, 7:45pm
#7
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
Vishwas
(Vishwas Adiga)
September 13, 2019, 8:34pm
#8
Does this do the job?
(It is totally untested , so do let me know if there are any bugs)
8 Likes
Taifun
September 13, 2019, 9:56pm
#9
here is another solution
Taifun
4 Likes
Peter
(Moderator)
September 14, 2019, 2:43am
#10
That’s not exactly what it should do but you are halfway there.
2 Likes
vknow360
(Sunny Gupta)
September 14, 2019, 2:56am
#11
I got it…
If letter is in lowercase then it will be uppercase and so on.
3 Likes
Peter
(Moderator)
September 14, 2019, 6:08am
#12
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.
5 Likes
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
1 Like
Vishwas
(Vishwas Adiga)
September 14, 2019, 10:47am
#14
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”
7 Likes
Robert
(rickastlee)
September 15, 2019, 5:57pm
#16
It was only 1/3 solution, because the three types of texts (by case) are
downcase - WORKS
UPCASE - DOES NOT WORK
bLeNdED - 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.
4 Likes
Moayad
(مؤيد زيدان)
September 19, 2019, 1:06am
#17
‏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
4 Likes
Peter
(Moderator)
Closed
October 19, 2019, 1:06am
#18
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.