Timeline for Depalindromize this string!
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Dec 17, 2016 at 0:36 | comment | added | Karl Napf |
@Cyoce A string in C is delimited by a \0 , so printing it afterwards yields only the first half. Technically, the tail is still present, but all string related functions only count up to the \0 .
|
|
Dec 17, 2016 at 0:26 | comment | added | Cyoce | Does setting the middle character to zero delete the rest of the string? (Not too familiar with C) | |
Dec 17, 2016 at 0:22 | comment | added | Karl Napf | @Cyoce Yes i can, thank you! | |
Dec 17, 2016 at 0:21 | history | edited | Karl Napf | CC BY-SA 3.0 |
added 43 characters in body
|
Dec 13, 2016 at 16:25 | comment | added | Cyoce |
I think you can remove the space in char* c
|
|
Nov 5, 2016 at 0:25 | comment | added | ShreevatsaR | Good point! (We're keeping around memory during the program's execution that we don't need, but you're right that when the string is freed, all of its memory is freed.) | |
Nov 5, 2016 at 0:18 | comment | added | Karl Napf |
@ShreevatsaR In case it was a malloc 'ed string, the memory manager does not know if it is a string or anything else, so the free would free everything
|
|
Nov 4, 2016 at 1:47 | comment | added | ShreevatsaR | This is arguably a memory leak :-) | |
Nov 3, 2016 at 9:02 | comment | added | Karl Napf | Well, it has the same length now, works for even+odd and looks golfier. I am okay with this. | |
Nov 3, 2016 at 9:00 | history | edited | Karl Napf | CC BY-SA 3.0 |
added 2 characters in body
|
Nov 3, 2016 at 9:00 | comment | added | Kevin Cruijssen | Hi, sorry I deleted my comment. I was correct in saying it won't work for even palindromes. But, since this is the reverse of that other challenge, there won't be any test cases for even palindromes.. Sorry about that, you can undo your change. +1 from me. :) | |
Nov 3, 2016 at 8:59 | review | Low quality posts | |||
Nov 3, 2016 at 9:01 | |||||
Nov 3, 2016 at 8:59 | comment | added | Karl Napf | @KevinCruijssen fixed | |
Nov 3, 2016 at 8:59 | history | edited | Karl Napf | CC BY-SA 3.0 |
added 2 characters in body
|
Nov 3, 2016 at 8:17 | review | Low quality posts | |||
Nov 3, 2016 at 8:54 | |||||
Nov 3, 2016 at 8:01 | history | answered | Karl Napf | CC BY-SA 3.0 |