Problem 790. Cody Computer Part 5 - Guess the Name of Cody Computer

Solution 106598

Submitted on 5 Jul 2012 by Vitaly Lavrukhin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% [s,g] = unix('set'); [a,nb] = regexp(g,'HOSTNAME=','split'); sol = regexp(a{2},'\n','split'); sol = sol{1}; % 11-July-2012 strcmp replaced isequal to accept answers of class java.lang.String assert(strcmp(your_fcn_name,sol),sprintf('Solution is %s',sol))

status = 0 s = ip-10-194-42-43 ans = ip-10-194-42-43

Suggested Problems

More from this Author30

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!