Problem 60734. Conditional transpose
Solution Stats
Problem Comments
-
4 Comments
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.
@Dyuman thanks for the tip. I avoided checking for "if " since it's also possible to write "if(condition)", but perhaps I could just check for both "if " and "if(". That, or try to work with the parse tree instead of fishing for textual matches...
@Dyuman I've updated the test suite, so using functions with "if" in their names should now work. Existing solutions have been rescored.
@Dyuman I've updated the test suite to check for banned keywords/functions based on the parse tree. Hopefully this'll be more robust and cause fewer false positives.
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
8 Solvers
More from this Author16
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!