We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
nCr
You are viewing a single comment's thread. Return to all 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.