Skip to main content
13 events
when toggle format what by license comment
May 6 at 1:57 comment added SectorCorruptor @anoman you will find many such answers on this site. In real life, you should avoid golfing your programs, for that makes it hard to understand. But this website is where weird but short programs live.
Oct 26, 2022 at 5:52 comment added mousetail 'he-him' @anoman Take a look at codegolf.stackexchange.com/questions/54/… for some info on some of the tricks used
Oct 26, 2022 at 5:51 comment added mousetail 'he-him' @CursorCoercer ouch my eyes hurt reading that. Nice find
Oct 26, 2022 at 4:48 comment added anoman @mousetail Hi, I am learning python as my first language but I never saw any code like this.Like the functions I learnt (for,while,if,else) and datatypes(integer,string,list) are not here. This code seems very alien/scary. Is this a coding by hiding functions? Thanks.
Oct 25, 2022 at 15:39 comment added CursorCoercer 51 bytes feels like it could go even lower
Oct 25, 2022 at 14:45 comment added 97.100.97.109 Sorry, it's a bad habit
Oct 25, 2022 at 14:39 comment added mousetail 'he-him' I wish you hadn't deleted your comment so I could find it again
Oct 25, 2022 at 14:38 comment added mousetail 'he-him' Your version flipped the condition I think, it didn't work properly in the equals case but I'm not really sure what I changed now.
Oct 25, 2022 at 14:33 comment added 97.100.97.109 The funny thing is, that (the code that you edited to) is the code that I had originally written, but for some reason I thought it wasn't working properly? I don't know why
Oct 25, 2022 at 14:31 comment added mousetail 'he-him' @97.100.97.109 Your version fails if the amount of occurrences exactly equals k but that's' fixable.
Oct 25, 2022 at 14:30 history edited mousetail 'he-him' CC BY-SA 4.0
added 148 characters in body
Oct 25, 2022 at 14:29 comment added 97.100.97.109 <s>Alternative 53 byte solution</s>
Oct 25, 2022 at 7:44 history answered mousetail 'he-him' CC BY-SA 4.0