Dyuman Joshi - MATLAB Cody - MATLAB Central

Dyuman Joshi

9
Rank
70
Badges
46061
Score
51 – 100 of 5,072

Dyuman Joshi submitted a Comment to Problem 60735. Delete some elements in the natural set and find the sum of the first n terms

The problem statement you have posted is not clear nor is there a test suite to work through/with. I suggest you to update your question accordingly within 1 week. Otherwise it will be deleted.

on 8 Sep 2024

Dyuman Joshi submitted a Comment to Solution 14298580

Though this function is considered slower for larger matrices, but since we are only dealing with vectors here, I assume it is good. Though I will run some tests to see how good it actually is. Of course, the best function to employ here is the one that just changes the header/flag of the array and not the data stored in the array. Though I was unable to find how to utilize it here. And I wonder how the Leading solution will fare against vectors with a big number of elements.

on 5 Sep 2024

Dyuman Joshi submitted a Comment to Solution 14296098

Note that using (:) is comparative slower - Here's an excellent thread dissecting why that is the case :- https://in.mathworks.com/matlabcentral/answers/887219-why-is-x-so-much-slower-than-reshape-x-n-1-with-complex-arrays?s_tid=srchtitle

on 5 Sep 2024

Dyuman Joshi submitted a Comment to Problem 60734. Conditional transpose

Christian, I would suggest you to update the check for if condition statement to 'if ' (i.e. with a space at the end), as there are functions containing the string 'if' , which are allowed, but fail with the current anti-cheat test suite. Same for problem #60736. Conditional transpose II.

on 4 Sep 2024

Dyuman Joshi submitted a Comment to Solution 14039226

@Eric, thanks for highlighting. This solution will be deleted soon. If you see other such hacks, kindly flag the solution - Moderators and Cody team will take care of them.

on 4 Sep 2024

Dyuman Joshi submitted a Comment to Problem 6. Select every other element of a vector

@Muhammad, take a deeper look at what the test cases are testing for.

on 29 Aug 2024

Dyuman Joshi submitted a Comment to Problem 563. How to add?

@赵思铭, Cody only supports basic MATLAB. It does not support any Toolboxes. Thus, you can't use 'sym' which is a part of the Symbolic Math Toolbox. This is officially mentioned in the "Notes" section on this page - https://in.mathworks.com/matlabcentral/content/cody/about.html

on 28 Aug 2024

Dyuman Joshi submitted a Comment to Solution 9680588

I have changed my mind, arrayfun() and other similar functions are not allowed. @Tim, you might want to solve the problem again.

on 26 Aug 2024

Dyuman Joshi submitted a Comment to Problem 60729. Organic Chemistry

A problem that requires hard-coded solution along with a limited test suite is not a good problem IMO.

on 24 Aug 2024

Dyuman Joshi received Community Group Solver badge for Programování - Cody

on 10 Aug 2024

Dyuman Joshi submitted a Comment to Solution 122564

Making a sophisticated test suite for such case(s) seems to be an interesting challenge!

on 10 Aug 2024

Dyuman Joshi submitted a Comment to Solution 8822735

Test suite has been updated and this solutions has been rescored. Also link to the wikipedia article has been fixed.

on 4 Aug 2024

Dyuman Joshi submitted a Comment to Solution 14136782

More of a pen and paper approach.

on 18 Jul 2024

Dyuman Joshi received Indexing I Master badge

on 16 Jul 2024

Dyuman Joshi submitted a Comment to Solution 8131420

Not a good solution.

on 16 Jul 2024

Dyuman Joshi submitted a Comment to Solution 4313625

@Eshita, this is a hack used to hide the actual code behind regexp(), and solve the questions with a fixed size (as per cody testing norms). regexp() hacks are not allowed in cody. Please flag any solution that uses it, so that mods can clean it up.

on 4 Jul 2024

Dyuman Joshi submitted a Comment to Solution 4313625

13 flags, alright. Test suite has been modified and solution has been rescored.

on 4 Jul 2024

Dyuman Joshi submitted a Comment to Solution 552049

Test suite updated, solution rescored and flags addressed.

on 30 Jun 2024

Dyuman Joshi submitted a Comment to Solution 9875383

13 Flags! Wow (The solution has been rescored)

on 28 Jun 2024

Dyuman Joshi submitted a Comment to Problem 59776. Extract Increasing Integers from Digit String

Similar to #55325 - https://in.mathworks.com/matlabcentral/cody/problems/55325

on 26 Jun 2024

Dyuman Joshi submitted a Comment to Problem 1089. Create a random vector of integers with given sum

@Sunil, there is no constraint on the length of the vector. It can be anything, as long it satisfies the conditions specified in the problem description and the test suite.

on 25 Jun 2024

51 – 100 of 5,072
Go to top of page