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.
Project Euler #167: Investigating Ulam sequences
Project Euler #167: Investigating Ulam sequences
Sort by
recency
|
9 Discussions
|
Please Login in order to post a comment
Hey! I've done this in c. Some of the test cases are accepted but the others show segmentation fault. Any suggestions?
public class Solution {
}
it takes a bit long time, can anyone please let me know a better way to do it.. it worked for the first test case though.
import java.util.; import java.text.; import java.math.; import java.util.regex.;
public class Solution {
Can anyone please suggest a optimal logic. Mine is giving a TLE. Thanks in advance.'