• + 0 comments

    If you are getting a segmentation fault it might be the case that your logic/algo is mostly fine, but there's some error in the code and it is trying to access memory which the CPU can't really access. Bad handling of pointers, arrays, dereferencing a Null pointer etc.