« first day (1 day earlier)      last day (60 days later) » 

09:35
I'll leave a CMC, solve it when you have time and want. I wonder if I can golf my solution
CMC: Given a list, extract the first and the last prime (guaranteed the list contains at least two primes)
(the list only contains positive integers)
Hi
Jim
Jim
Hi
Just passing
Me too
I wonder if a solution of mine to a self-challenge can be golfed :)
Jim
Jim
@Mr.Xcoder I'll try that
Thanks
It feels a bit too long, I have 11 10 bytes
Jim
Jim
I think you can reapply your solution of yesterday .MP_ (or something like that)
about extracting primes from a list
09:44
@Jim Yes, I did
That doesn't really save bytes
That actually wastes 1, I think
Oh, I came up with something shorter
Jim
Jim
Nice
I will look into it later
For reference, I now have 9 bytes
Jim
Jim
10:08
By the way the solution .MP_ doesn't work for lists that do not contain primes
@Jim That is true
I haven't used it for this CMC
Have you solved it?
Jim
Jim
@Mr.Xcoder No
Ah, ok
Ping me when you do
Bye!
 
5 hours later…
Jim
Jim
15:28
@Mr.Xcoder Still 9 bytes?
 
1 hour later…
16:35
Yes
@Jim outgolfed me?
Jim
Jim
@Mr.Xcoder Absolutely, 8 bytes
I didn't even work on it since then
@Jim wait, trying to tie you
Jim
Jim
Okay
I may respond late, I'm on mobile
I have eKfP_TQhK, Trying to golf
Don't spoiler me
Jim
Jim
Take your time
16:43
Thanks
My solution is not even valid
It should be eKSfP_TQhK
(10 bytes)
Are you sure yours is 8?
If so, great job 👍🏽
@Jim Can you give me your solution now?
Jim
Jim
Yes
Just a minute
@Mr.Xcoder hC_B.MP_
16:58
Niceee
Jim
Jim
It could be hM_B.MP_ also
I didn't know of B
Jim
Jim
It is very handful here
Jim
Jim
Basically returns [A, -A] in this case
17:01
I see, very nice
Maybe give me an easy CMC to solve on mobile?
(I am bored...)
Jim
Jim
Hmmmm…
@Jim take your time
Jim
Jim
CMC: Given a list of characters, output each character multiplied by its position. ['c', 'z', 'w', 'u'] -> ['', 'z', 'ww', 'uuu']
Like my CMC on TNB earlier
Solving it now
Thanks
Jim
Jim
5 bytes
3 bytes now
17:08
The 5 byte one: m*dxQ
@Jim found a useful built-in?
Jim
Jim
@Mr.Xcoder That's nice, I would have not thought of x here
My 5 bytes version was: .e*kb
@Jim i wouldn't of thoght of k and b here :P
Jim
Jim
@Mr.Xcoder :D
There is a zip which takes a function
zip(list1, list2, func)
@Jim .V?
Jim
Jim
Do you know it?
17:12
Yeah, never used, but I know of it
Will do
Jim
Jim
No, it's not .V
I'll find it anyway
Jim
Jim
I can tell you, it's not an easy one to find by its description
@Jim I'll ask you if I won't find it
Jim
Jim
Okay
17:15
Does it take <lst> <lst> and something else?
Jim
Jim
Yes
Or <col> <col> or <seq> <seq> or something else?
Jim
Jim
It's actually <col>
Thanks
Jim
Jim
The order is different thought
17:17
What is the built-in?
Jim
Jim
You give up?
I'll try to solve the rest
I cannot find the char
Jim
Jim
It's V
@Jim I found it, but ignored because .V :/
Jim
Jim
@Mr.Xcoder I suspected that
17:18
Shoot
I ended up being much longer. I am missinng sth: *VQmxQd
I wanna golf it now
Jim
Jim
That's a good start
But mxQd is overcomplicated
6 bytes: *VmxQd
@Jim Was just searxhing for a replacement
Jim
Jim
Think of what mxQd generates
I found it
*VU
Jim
Jim
@Mr.Xcoder That's it!
17:23
My turn
@Mr.Xcoder I have write access :P
@cairdcoinheringaahing do you want me to remove your write access?
Jim
Jim
@Mr.Xcoder Hmm, I won't have time now
Maybe later
@Jim I'm on mobile too, so great
Later today?
Jim
Jim
@Mr.Xcoder Yes
17:25
@Jim i will be online in ~2 hours
Jim
Jim
Okay, I should be around as well
After that I'm going to go to sleep in ~3
Jim
Jim
@Mr.Xcoder Oh, that's early
It would be 10pm at that time where I live
10:30 pm
It would be 23:30, but I stay in bed for a couple of hours watching movies :) Maybe i'll skip that and train Pyth
I will do so :P
 
2 hours later…
19:50
@Jim Are you on?
Jim
Jim
20:22
@Mr.Xcoder Now I am
It's your CMC turn
Jim
Jim
Okay
Given an input string containing alphanumeric characters
Replace the runs of digits by the equivalent ASCII character
The runs are guaranteed to represent a valid printable ASCII character
aaabb -> ab?
Jim
Jim
For instance auidt71wbdu98 -> auidtGwbdub
oh
The digit runs turn into their corresponding letters
Jim
Jim
20:27
Yes. Time to practice your regex!
@Jim What's the chr()in Pyth
@Jim I never use regex 😭
Jim
Jim
@Mr.Xcoder C
@Jim that's gonna be though since I have no idea how a regex works. I suppose it's something like (\d)*, will figure that out
Figured it out: \d+
@Jim Have you already solved it, such that I have a reference byte count?
Jim
Jim
@Mr.Xcoder Well, I don't know regex either. But yes, that matches numbers
@Mr.Xcoder No
@Jim Well, I have no idea how I should solve it, unless I find a workaround with : and C
Jim
Jim
20:38
@Mr.Xcoder You can start with :z"(\d+)"3, but that's not gonna give the shortest solution
Are you already done?!
Jim
Jim
No
I am trying to understand regex(es)
@Jim Good luck
@Jim May I assume there will be at least one letter and one digit run? (i.e: abc45 is valid, but I won't receive abc or 123 or <empty string> )
Jim
Jim
@Mr.Xcoder Yes
@Jim That makes my life much easier
UNGOLFED, 28 bytes: sm+hdCsedC(:Q"\d+"3:Q"\d+"1)
Don't give golfing tips yet
Jim
Jim
20:46
@Mr.Xcoder Aouch. That's kind of long
@Jim I know
Will golf slowly
26 bytes: K"\d+"sm+hdCsedC(:QK3:QK1)
That's what I have for splitting into letter-digit runs K"\d+"C(:QK3:QK1)
My solution is long and invalid :(
It doesn't handle abc38ab :(
Jim
Jim
I still have no working solution, don't worry
I'll have to leave very soon
Jim
Jim
Okay
Gotta leave!
Bye
Please leave a solution when you are done.
Jim
Jim
20:59
Alright, bye!

« first day (1 day earlier)      last day (60 days later) »