@ItsRoyal Right on!
I try to spend about a half hour a day @ codewars, but lately haven’t had the chance, fyi there is a freeCodeCamp clan you can join there. For a while now I have been stuck on a problem that I actually solved but not fast enough for my solution to be accepted.
did you try kumite on codewars?
It would be more fun if you named the kata you are going to do the next day. Then we can all have a go at it.
@Dereje1 What was the name of the challenge that you stuck on?
@rfprod No, I haven’t. Have you?
@JohnnyBizzel Great idea. I appreciate the suggestion.
its called next smaller number with same digits
Maybe I’ll get back on there too, I’m in the “Free Code Camp” Clan, there are 373 of us.
I really like codewars, it was a very useful tool for me. However at my level (3rd - 4th kyu) I feel like things get a bit out of control. Not just in difficulty of the task, but difficulty in deciphering what they want you to do.
not all of the challenges are like that though, for instance I solved a Sudoku solver challenge (3 kyu). The premise was easy to understand, but the challenge difficult. It took me between 3 days and a week but it was my favorite codewars challenge. I learned a lot. I love that it was a practical challenge, with a real world application.
Good luck on your challenge,
I might check back in on this topic to see if any interesting codewars challenges come up
I was thinking this sounded familiar but looking back through my solutions section, turns out I did “Next bigger number with the same digits” instead (they actually mention the kata in the description).
It looks like I had trouble with it too, seeing as I commented at the top of my solution "very messy, with unnecessary leftovers from earlier attempts"
that probably means I was up for a long time and when I finally finished I was too tired to refactor. Just submitted and never wanted to see it again
yeah, its the same problem but in reverse, I saw that in the description too, I have the logic down, which really isn’t too bad, but I’m doing it the brute force way and so it takes too long to solve for big numbers and my solution gets rejected. I have to make it smarter and skip over unnecessary calculations. In any event I just started on the backend challenges here and it is taking up most of my time, but I will get back to it.
Question for you, did you mean there are 73 fcc’ers or actually 373, I only see 75 or so in my account, maybe there is another clan I’m not aware of ?
373, if you type “Free Code Camp” rather than “freecodecamp” or anything like that.
I tried a few variations before finding this one, but this had the most members, and P1xt is #14 in the clan rankings so I took that to mean I found the… official unofficial fcc group
I dont know if theres a way to directly look at a codewars clan without joining it, but you can check my allies in my profile. They’re all from that clan.
got it , just found a away to merge them by typing
Free Code Camp, freecodecamp in my account settings, and now there are 446 people, nice , thanks!
no, just checked the description. planning to try some when I have enough spare time. thought it may interest you.
@Dereje1 Wow 4 kyu! I don’t think that I’m there yet. Hopefully I can manage to solve a problem that difficult by the end of my 30 Days Codewar Challenge.
@JashuHB Thanks! The Sudoku solver challenge seems like an interesting problem to solve. I think that I’m going to join the ‘Free Code Camp’ clan too.
@rfprod I appreciate that you pointed them out. I’ll check out the kumite.
If anybody has an interesting challenge that they want to share then I would love to read about it.
I just now solved that problem by reusing my code from bigger number challenge with some changes.
Going over it again and reading that you are using brute force, leads me to wonder if you mean you’re checking every combination of numbers?
for all I know you’re already doing things in the way I’m about to mention, but just in case it helps…
it might help to think of it like this,
as close to the one’s place as possible you need to replace a digit with a digit that’s not only smaller, but is also closer to the one’s place.
for a number, say
num = 70632182348246 // 6 has no smaller number before it, neither does 4 or 2. //this leaves 8 as the first digit with a smaller digit that can replace it // so we can boil this down to just working with 8246 // and leave the beginning 7063218234 part for later //now you just have to figure out how to rearrange 8246 before stitching the result back onto the end of 7063218234
hope that helps simplify things a bit.
when is the best time to start playing on codewars or coding game? My JS is at initial stage now. Did you guys finish the whole course first or just started playing as soon as possible?
Edit: oops This reply wasn’t aimed at you specifically but to the whole thread.
Sometimes a challenge can be re-purposed, and I feel like being able to edit your old code to fit new purposes is a valuable skill. It really highlights the importance of self-documenting code, and commenting your code.
I myself started learning JS with a few weeks of flatiron academys free “bootcamp prep” course, at some point I stopped following that course and found freecodecamp.
so I had at least a few weeks intro even before fcc, but
my earliest codewars solution lists as “3 months ago” (this doesnt seem like long enough ago)
my earliest algorithm on FCC lists as “Jun 17”
I progressed a lot on codewars before finishing up the JS lessons here though.
did you try kumite on codewars?