Cody

# Problem 233. Reverse the vector

Solution 794974

Submitted on 17 Dec 2015 by Ahmad
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
%% x = 1; y_correct = 1; assert(isequal(reverse(x),y_correct))

y = 1

2   Pass
%% x = -10:1; y_correct = 1:-1:-10; assert(isequal(reverse(x),y_correct))

y = 1 0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10

3   Pass
%% x = 'able was i ere i saw elba'; y_correct = 'able was i ere i saw elba'; assert(isequal(reverse(x),y_correct))

y = able was i ere i saw elba
{"ft_lang_label":"__label__en","ft_lang_prob":0.75871414,"math_prob":0.9857301,"size":786,"snap":"2020-34-2020-40","text_gpt3_token_len":270,"char_repetition_ratio":0.15089513,"word_repetition_ratio":0.11111111,"special_character_ratio":0.37659034,"punctuation_ratio":0.2,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9870673,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-22T04:43:41Z\",\"WARC-Record-ID\":\"<urn:uuid:1825c699-7050-4cc5-9e71-147638ed2402>\",\"Content-Length\":\"76497\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:34c61e33-da0c-49bc-964f-875a5dc82567>\",\"WARC-Concurrent-To\":\"<urn:uuid:dc7baaab-834f-4404-8dfc-346eea378f79>\",\"WARC-IP-Address\":\"23.195.64.158\",\"WARC-Target-URI\":\"https://jp.mathworks.com/matlabcentral/cody/problems/233-reverse-the-vector/solutions/794974\",\"WARC-Payload-Digest\":\"sha1:MXR4IJ7AX6LF73NHTWO75ZK6SXMBGUAX\",\"WARC-Block-Digest\":\"sha1:RN7WX72C6A3JN2KIU3FHXPDCKHBXM2VQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400203096.42_warc_CC-MAIN-20200922031902-20200922061902-00053.warc.gz\"}"}