Cody

# Recent Activity

1 – 50 of 9,898
 Nhat Lam Nguyen submitted a Comment to Solution 1944913 niceeeeeeeeee 18 hours and 13 minutes ago Lamour Haithem Firass submitted a Comment to Solution 5422 i want to know how does the second line work , i don't understand the reslut ,can u help???, 19 hours and 32 minutes ago give me a new think about numbers 19 hours and 41 minutes ago Lamour Haithem Firass submitted a Comment to Solution 1865516 me2 21 hours and 13 minutes ago i have the program on my matlab it work normaly but cody does not accepet the code don't know why????? function y = evenFibo(n) y(1) = 1;y(2) = 1; for i = 3:n y(i) = y(i-1) + y(i-2); end e = y; E = mod(e,2) == 0; evennumbers = e(E); y = length(evennumbers); if n > 2 fprintf('The even Fibo number is: %d',y) end end 21 hours and 14 minutes ago nice!!! on 21 Sep 2019 at 6:21 Augusto Mazzei submitted a Comment to Solution 1944616 this solution works on my comupter I see the first test command line is corrupted %%x=3 :( :( :( on 20 Sep 2019 at 23:44 George Baker submitted a Comment to Solution 1943859 Test 1 doesn't work, I literally have the same result and it fails, but test 2 passes on 20 Sep 2019 at 10:36 Augusto Mazzei submitted a Comment to Solution 53910 Mr Castanon is a true god. I preferred asking wolfram solver. Wish I studied infinite series properly at school on 19 Sep 2019 at 18:15 There seems to be no check on the word indexing part of the problem. I passed the test suite without indexing at all. on 19 Sep 2019 at 9:10 Simon Thomas submitted a Comment to Solution 1942530 There seems to be no check on the word indexing part of the problem. I passed the test suite without indexing at all. on 19 Sep 2019 at 9:09 Christian Schröder submitted a Comment to Problem 44967. Hello Good problem, but a duplicate of problem 44384. on 18 Sep 2019 at 20:49 Oh on 18 Sep 2019 at 16:06 Good one on 17 Sep 2019 at 16:41 Simon Thomas submitted a Comment to Solution 1939228 Happier now. Loop though nList handled in test suite. No loop in my function and returns the 2 primes closest together on 17 Sep 2019 at 10:29 Simon Thomas submitted a Comment to Solution 1939224 given that the looping through nList is handled in the test suite, I don't need to. on 17 Sep 2019 at 10:11 No, that test suite is fine, since he uses those random values to calculate y_correct. Also, for that other test with 3>7, he's using that to create a false logical value for y_correct. on 16 Sep 2019 at 12:37 The test suite should be working now. I fixed the parentheses problem mentioned in the other comments (it should now recognize left and right parentheses as different). There were also seven spaces between words in the test suite, though the encoded description indicated five—that has been fixed, as well. on 16 Sep 2019 at 12:31 hay on 14 Sep 2019 at 13:08 Lohendran letchmanan submitted a Comment to Solution 1935707 its hard on 14 Sep 2019 at 9:38 ... submitted a Comment to Solution 1935431 good on 14 Sep 2019 at 4:58 vecsum doesn't work in my 2018b software and I can't find vecsum in my documentation. Where is it? on 13 Sep 2019 at 16:36 Richa Singh submitted a Comment to Solution 1934272 What exactly the error is on 13 Sep 2019 at 9:09 Abuzar Qureshi submitted a Comment to Solution 1931727 Nice and Easy on 12 Sep 2019 at 5:30 Hieu Tran submitted a Comment to Solution 1930828 whyyyyy on 11 Sep 2019 at 15:21 still problem with test suit x2=3; x3=9; [fr1,fc1]=find(and(x1>=x2,x1<x3)) fails on 10 Sep 2019 at 13:50 Nhat Lam Nguyen submitted a Comment to Solution 1928846 From Viet Nam with love on 10 Sep 2019 at 10:39 great problem on 10 Sep 2019 at 10:37 Nhat Lam Nguyen submitted a Comment to Solution 1928827 good on 10 Sep 2019 at 10:34 Nhat Lam Nguyen submitted a Comment to Solution 1928761 easy on 10 Sep 2019 at 10:11 Nhat Lam Nguyen submitted a Comment to Solution 1928749 nice on 10 Sep 2019 at 10:06 test suit is broken plz fix since its a budge problem on 9 Sep 2019 at 17:49 David Hill submitted a Comment to Problem 44961. RSA decryption Sorry, I did not mean to do that. Fixed. on 8 Sep 2019 at 23:27 William submitted a Comment to Problem 44961. RSA decryption David -- Good problem. I got sidetracked by the fact that the arguments 'd' and 'n' in the solution template are reversed from the order that they are provided in the test problems. on 8 Sep 2019 at 20:22 Ahmed Nazir submitted a Comment to Problem 22. Remove the vowels #WARNING Character Array And String are not similar. length('abc') % 3 length("abc") % 1 so 'abc' is NOT EQUAL to "abc" use "char" function to get character array from string char("abc") % 'abc' on 7 Sep 2019 at 7:06 Tim Wilkin submitted a Comment to Solution 858845 This is not a valid solution. It does not meet the requirement of elements in each subset being sorted. Try the input [1 3 2] and it does not give sorted subsets. on 5 Sep 2019 at 23:23 I don't know on 4 Sep 2019 at 6:35 Convert byte array into an integer/biginteger on 3 Sep 2019 at 14:36 In the first test suite, Robinson and Reed both have the same age, so I think either the test suite should be improved or Reed's age in the .mat file should be changed. on 3 Sep 2019 at 9:20 1 on 3 Sep 2019 at 1:49 Sorry, but I don't understand your instruction to "convert the uint8 array to a long integer string". Could you be more specific? on 3 Sep 2019 at 0:47 Md Saif Ansari submitted a Comment to Problem 167. Pizza! Very Nice Question! on 2 Sep 2019 at 22:20 Doan Quang Manh submitted a Comment to Solution 1172620 nice :) on 2 Sep 2019 at 14:29 Timothy Chavez submitted a Comment to Solution 1917732 This solution seems to run correctly in MATLAB (desktop)... can anyone tell me why it is coming back with an "Assertion Failed"? function vec = makeRandomOrdering(n) vec = zeros(1, numel(n)); flags = zeros(1, numel(n)); index = 1; while (sum(flags) ~= numel(n)) pos = randi(numel(n)); if (flags(pos) ~= 1) vec(index) = n(pos); index = index + 1; flags(pos) = 1; end end end on 31 Aug 2019 at 22:50 Something weird is happening When I submit the size of my code is -1 and it fails the test suite when it seems to work fine in MATLAB desktop. on 30 Aug 2019 at 20:19 Malcolm Wildgoose submitted a Comment to Solution 1915445 Nice! on 29 Aug 2019 at 15:54 Tim submitted a Comment to Solution 1915449 Googling can supplant programming sometimes. on 29 Aug 2019 at 13:37 is good on 29 Aug 2019 at 13:26 Tim, you are absolutely correct. Thanks for the comment. I fixed the test cases. on 28 Aug 2019 at 22:46 If I understand correctly, we should have mod(d*e,phi)=1, where phi=(p-1)*(q-1). My answers seem to satisfy that condition, but test cases 2, 3, and 4 do not. on 28 Aug 2019 at 21:23
1 – 50 of 9,898