Cody

# Problem 9. Who Has the Most Change?

Solution 1812725

Submitted on 10 May 2019 by Gregory
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
a = [1 2 1 15]; b = 1; assert(isequal(most_change(a),b))

values = 0.2500 0.0500 0.1000 0.0100

2   Pass
a = [ 1 2 1 15; 0 8 5 9]; b = 2; assert(isequal(most_change(a),b))

values = 0.2500 0.0500 0.1000 0.0100

3   Pass
a = [ 1 22 1 15; 12 3 13 7; 10 8 23 99]; b = 3; assert(isequal(most_change(a),b))

values = 0.2500 0.0500 0.1000 0.0100

4   Pass
a = [ 1 0 0 0; 0 0 0 24]; b = 1; assert(isequal(most_change(a),b))

values = 0.2500 0.0500 0.1000 0.0100

5   Pass
a = [ 0 1 2 1; 0 2 1 1]; c = 1; assert(isequal(most_change(a),c))

values = 0.2500 0.0500 0.1000 0.0100

6   Pass
% There is a lot of confusion about this problem. Watch this. a = [0 1 0 0; 0 0 1 0]; c = 2; assert(isequal(most_change(a),c)) % Now go back and read the problem description carefully.

values = 0.2500 0.0500 0.1000 0.0100

7   Pass
a = [ 2 1 1 1; 1 2 1 1; 1 1 2 1; 1 1 1 2; 4 0 0 0]; c = 5; assert(isequal(most_change(a),c))

values = 0.2500 0.0500 0.1000 0.0100
{"ft_lang_label":"__label__en","ft_lang_prob":0.5303261,"math_prob":0.9997472,"size":1260,"snap":"2020-10-2020-16","text_gpt3_token_len":593,"char_repetition_ratio":0.16242038,"word_repetition_ratio":0.14574899,"special_character_ratio":0.5777778,"punctuation_ratio":0.23333333,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96098465,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-22T11:00:41Z\",\"WARC-Record-ID\":\"<urn:uuid:a93eae1a-aed2-44aa-98b6-54703c887021>\",\"Content-Length\":\"80643\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f05910dd-b929-4962-8064-79ded008c044>\",\"WARC-Concurrent-To\":\"<urn:uuid:421e5963-2f34-428e-bd91-6e008e21307d>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://uk.mathworks.com/matlabcentral/cody/solutions/1812725\",\"WARC-Payload-Digest\":\"sha1:444M7N4MDIJSWRPGAD4LV7B5AU66RLOQ\",\"WARC-Block-Digest\":\"sha1:YO4W3ZDHYOGQGXMCT2MGL4AHXM44Y55D\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875145657.46_warc_CC-MAIN-20200222085018-20200222115018-00448.warc.gz\"}"}