Murat Yildirim - MATLAB Cody - MATLAB Central

Murat Yildirim

38863
Rank
2
Badges
100
Score
1 – 12 of 12

Murat Yildirim submitted a Comment to Problem 45463. Word Ladder

Hi Asif Newaz, thx for the problem. I enjoyed to solve it. But in the task i found a missing information. Second Test case provides in the set follwing words 'can','fan','pat'. In the second iteration when function found pan, all three cases match and i do not see any rule in the description, why it has to be pat. When i follow in the Test Cases the solution, it seems words which differ a single character only at the end of the pattern will get preferred. For my understanding, the current description is not limiting any solution when multiple Hits are detected. Maybe add an additional requirement, clarifying the rank of matches. Thx :-).

on 13 Apr 2022

Murat Yildirim received Commenter badge for Solution 309586

on 13 Apr 2022

Murat Yildirim submitted a Comment to Solution 309586

Suggested Solutions reminds me lambda expressions in C++ or Java. And i agree regexp misusage is truly hiding the code in MATLAB build in functions. The size = 10 is misleading, since unwrapping the if condition, can never be lesser than a single line function, like this function tf = is_it_odd(n) tf = mod( n, 2 ) == 1; end Obviously no if environment is called and an explicitly assignment is in this case totally not needed, hence mod is returning a value (type: @logical). Further this expression cannot work without any explicit assignment command for the output result. My strict recommendation for MATLAB newbies to ignore such statements. It is truly not good practice and me as Software Developer would directly reject such solutions.

on 13 Apr 2022

Murat Yildirim received Solver badge for Solution 7905685

on 13 Apr 2022

1 – 12 of 12
Go to top of page