No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Im having some trouble putting together a linked list implementation of a queue. I'm getting a segmentation fault, which I believe is due to my empty() function because in an attempt to fix my empty() function, I made it determine empty based on (current_size == 0) instead of (front_p == … |
|
Hey guys, this code is supposed to remove all the spaces at the end of each line. However from what I can tell it prints out the exact same file again instead of removing nothing. Have I been using the wrong test files? Or is there something wrong with my … |
|
Hi all, Ive been working on this little piece of code down there that removes the odd numbers from a list of numbers. I get an "IndexError: list index out of range" whenever I try to run it. From what I understand, it means that l[i] is attempting to use … |
|
Hey guys, is there any alternative methods to string slicing? An example output would be: input: dani output: d da dan dani I did this with string slicing, but am wondering if it is possible to do the same thing without slicing. Anyone help out? Testie, |