Cody

Recent Activity

1 – 50 of 4,928

SherlockSecure Bugcrowd submitted a Comment to Problem 7244. Times 3 problem

nice problem

22 hours and 45 minutes ago

Parv Verma submitted a Comment to Problem 2024. Triangle sequence

It was a really great problem to solve. For me doing the steps as mentioned on paper helped a lot for proper visualization of the problem, and to understand the flow. Thanks Tanya Morton for the problem exercise.

on 6 Dec 2019 at 18:54

William submitted a Comment to Problem 45221. cofactor matrix

Why is there a value 4.000000000000001 in the cofactor matrix of problem 4? The matrix is composed entirely of integers, so the cofactors should all be integers as well.

on 5 Dec 2019 at 19:09

Nicolas Douillet submitted a Comment to Problem 45220. Find triangles from edge

I actually realize this problem looks like a lot to my second problem, "Find a common edge" ( https://fr.mathworks.com/matlabcentral/cody/problems/45218-find-a-common-edge ) ...

on 3 Dec 2019 at 20:49

Nicolas Douillet submitted a Comment to Problem 45220. Find triangles from edge

Info : T is actually a triangulation -list of triangles-, in which each index corresponding to the row index of a vertex in another list -a vertices list-, it is a widely used technique used to store and write triangular meshes in mesh processing. Here below the example is a tetrahedron -4 facets-.

on 3 Dec 2019 at 20:35

Nicolas Douillet submitted a Comment to Problem 45219. Find edges from a vertex

Info : T is actually a triangulation -list of triangles-, in which each index corresponding to the row index of a vertex in another list -a vertices list-, it is a widely used technique used to store and write triangular meshes in mesh processing. Here below the example is a tetrahedron -4 facets-.

on 3 Dec 2019 at 7:41

Asif Newaz submitted a Comment to Problem 1639. SHIFT REGISTER

the test suite answer is wrong

on 2 Dec 2019 at 20:08

Adam Jelínek submitted a Comment to Problem 953. Pi Estimate 1

The principle is described here: https://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80

on 2 Dec 2019 at 16:15

Martin Thomas submitted a Comment to Problem 2946. Where is she?

Really, you should have a link between what directions you're looking, looking up and backwards aren't technically a pair, should really be look up/down or forward/back.

on 2 Dec 2019 at 12:33

Nicolas Douillet submitted a Comment to Problem 45218. Find a common edge

Info : T is actually a triangulation -list of triangles-, in which each index corresponding to the row index of a vertex in another list -a vertices list-, it is a widely used technique used to store and write triangular meshes in mesh processing. Here below the example is a tetrahedron -4 facets-.

on 1 Dec 2019 at 18:02

Nicolas Douillet submitted a Comment to Problem 45217. Find a common vertex

Info : T is actually a triangulation -list of triangles-, in which each index corresponding to the row index of a vertex in another list -a vertices list-, it is a widely used technique used to store and write triangular meshes in mesh processing. Here below the example is a tetrahedron -4 facets-.

on 1 Dec 2019 at 17:14

Jean-Marie Sainthillier submitted a Comment to Problem 42875. Assignment Problem

Good problem. How to proceed with larger matrix (where permutations are too expensive) ?

on 29 Nov 2019 at 15:20

Asif Newaz submitted a Comment to Problem 824. Set the array elements whose value is 13 to 0

damn man!!! i just tore my head off to solve this then i figured there is a very very simple way to do that

on 25 Nov 2019 at 14:36

nireas liapis submitted a Comment to Problem 247. Arrange Vector in descending order

i comment for the challenge

on 23 Nov 2019 at 20:00

David Verrelli submitted a Comment to Problem 44819. Relative pose in 2D: problem 1

The %% is an issue because it is so poorly documented and hence poorly understood (or even not understood). The following seems to be how it works. [Note: in the following I will use "↲" to indicate the end of a line in the code/output.]       ~~~~~~~~~~ Creator writes this TEST SUITE: ~~~~~~~~~~ ----- commandA↲ commandB↲ ↲ %% test 1↲ commandX↲ ↲ %% test 2↲ commandY↲ -----       ~~~~~~~~~~ Cody RUNS the following tests: ~~~~~~~~~~ Test 1: (i) commandA; (ii) commandB; and (iii) commandX. Test 2: (i) commandA; (ii) commandB; and (iii) commandY.       ~~~~~~~~~~ Cody DISPLAYS the following output: ~~~~~~~~~~ ----- %%commandA↲ commandB↲ ↲ %% test 1↲ commandX↲ ↲ [output from commandX only]↲ ↲ %% test 2↲ commandY↲ ↲ [output from commandY only]↲ ↲ ----- ~~~~~~~~~~       Notice: (i) any commands before the first %% [namely commandA and command] are run at the beginning of every test; (ii) output of any commands before the first %% is suppressed [never displayed]; (iii) for the player, a spurious "%%" is displayed on the first line of the Test Suite if there were any commands before the first "%%".       It is actually a very clever structure for Problem Creators writing a Test Suite. Therefore I'd be keen to retain it. See e.g. https://www.mathworks.com/matlabcentral/cody/problems/44655       The annoyances are: (i) lack of documentation; (ii) suppression of output; and (iii) insertion of a spurious "%%" in the display. Although none of these three issues affect the running, they cause a lot of confusion and misunderstanding.

on 23 Nov 2019 at 2:24

Willion Bird submitted a Comment to Problem 66. Find the two-word state names

What do this problem mean ?

on 22 Nov 2019 at 6:16

Payam Morsali submitted a Comment to Problem 801. Construct an index vector from two input vectors in vectorized fashion

give me a hint, should we use a specific function here?

on 17 Nov 2019 at 17:01

Atsushi Ueno submitted a Comment to Problem 45189. Double Factorial

Neither n = -1, nor n = 0 are tested.

on 17 Nov 2019 at 16:22

Atsushi Ueno submitted a Comment to Problem 44500. Find the starting index of a consecutive condition

The test suite is not enough because it does not contain any case that the number of consecutive true bits is exactly same as n.

on 16 Nov 2019 at 9:16

Ali submitted a Comment to Problem 23. Finding Perfect Squares

Clever problem

on 15 Nov 2019 at 18:03

Miles Walker submitted a Comment to Problem 78. Implement a ROT13 cipher

Why does the "t" not change in the second word of the second test? The correct answer has an unchanged "t"?

on 15 Nov 2019 at 11:37

Payam Morsali submitted a Comment to Problem 895. Generate N equally spaced intervals between -L and L

y = linspace(-L,L,(N+1)) why this is not working even though it meets all the requirements in the assert?

on 14 Nov 2019 at 20:54

hashim khan submitted a Comment to Problem 3. Find the sum of all the numbers of the input vector

y=sum(x) is not working

on 14 Nov 2019 at 8:01

Asif Newaz submitted a Comment to Problem 1567. Make a vector of prime numbers

ur last test suite..4896 is too big

on 13 Nov 2019 at 21:42

Asif Newaz submitted a Comment to Problem 114. Check to see if a Sudoku Puzzle is Solved

ur test suite 6 is wrong, isn't it??

on 13 Nov 2019 at 17:44

David Motson submitted a Comment to Problem 44951. Verify Law of Large Numbers

The solution quits because it's taking too long. 1e8 is too many?

on 12 Nov 2019 at 13:32

Kingfall submitted a Comment to Problem 44960. Rescale Scores

It appears the last column of the output from the problem statement should be 3.5; 0.0; 2.0 instead of 3.5; 0.0; 3.0, but the first test suite does have it correct.

on 11 Nov 2019 at 15:47

Pooja Lalan submitted a Comment to Problem 44958. Crop an Image

Thank you Payam. I assume you meant specifying the order of the inputs explicitly. I have updated the description to make it clearer.

on 11 Nov 2019 at 15:20

Richard Dezso Kovacs submitted a Comment to Problem 44949. Find the Best Hotels

You should mention that the answer should be given as a column vector, rather than row vector. One at this time must examine the assessment code to give the right answer, while I think it should be self-contained in the question itself.

on 10 Nov 2019

Fakhteh Ghalami submitted a Comment to Problem 568. Number of 1s in a binary string

would you please let me know why sum(x) creates error?

on 9 Nov 2019

Fakhteh Ghalami submitted a Comment to Problem 174. Roll the Dice!

can anyone help me why x1 = 1 + (5)*rand(1,1); x2 = 1 + (5)*rand(1,1); is wrong???

on 9 Nov 2019

Payam Morsali submitted a Comment to Problem 44958. Crop an Image

you should mention which is which in this matrix Icrop = crop_image(I, 2, 2, 1, 3)

on 9 Nov 2019

Fakhteh Ghalami submitted a Comment to Problem 8. Add two numbers

c=a+b

on 8 Nov 2019

Dan Xu submitted a Comment to Problem 1. Times 2 - START HERE

Great for test, like Hello world.

on 8 Nov 2019

William submitted a Comment to Problem 44909. Reepeating numbers in array

Problem #2 has a missing right bracket on y_correct.

on 6 Nov 2019

David Motson submitted a Comment to Problem 45173. Create the flag of Ramumbia

Please correct the test suite. I believe that I have submitted a correct solution

on 5 Nov 2019

David Motson submitted a Comment to Problem 45160. Convert characters into numbers

presumably this problem is incomplete? the test doesn't check anything meaningful

on 5 Nov 2019

David Motson submitted a Comment to Problem 174. Roll the Dice!

I offered a solution that should be working (works okay in Matlab) but not here: round(rand()*5+1); - not the most optimum, but still provides the correct output, yet fails the test

on 4 Nov 2019

Asif Newaz submitted a Comment to Problem 64. The Goldbach Conjecture, Part 2

@Dima Panna 'nthprime' uses symbolic math toolbox which is not supported in cody

on 1 Nov 2019

Simon submitted a Comment to Problem 1035. Generate a vector like 1,2,2,3,3,3,4,4,4,4

Can it be done without a for loop?

on 1 Nov 2019

Asif Newaz submitted a Comment to Problem 1080. Guess Cipher

i dont get it.help me understand

on 30 Oct 2019

Daniel Montag submitted a Comment to Problem 953. Pi Estimate 1

The link is broken, but you can solve this problem with the Leibniz formula for π.

on 30 Oct 2019

Asif Newaz submitted a Comment to Problem 31. Remove all the words that end with "ain"

nice problem..really nic

on 28 Oct 2019

Nikolaos Nikolaou submitted a Comment to Problem 43667. Use a timetable to analyze a train timetable (Part 4)

Peng do share the grouping method cause it eludes me :)

on 28 Oct 2019

1 – 50 of 4,928