Cody

# Problem 233. Reverse the vector

Solution 1848877

Submitted on 13 Jun 2019 by David Kumiega
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(reverseVector(x),y_correct))

y = 1

2   Pass
x = -10:1; y_correct = 1:-1:-10; assert(isequal(reverseVector(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(reverseVector(x),y_correct))

y = 'able was i ere i saw elba'
{"ft_lang_label":"__label__en","ft_lang_prob":0.7012174,"math_prob":0.97107714,"size":685,"snap":"2019-51-2020-05","text_gpt3_token_len":224,"char_repetition_ratio":0.13069016,"word_repetition_ratio":0.08943089,"special_character_ratio":0.36350363,"punctuation_ratio":0.11034483,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98674196,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-06T15:59:22Z\",\"WARC-Record-ID\":\"<urn:uuid:2d26d5ee-741d-4096-a2a3-290eadef34f2>\",\"Content-Length\":\"72614\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8d7971a1-cdde-4923-8eb1-42aaaddccfc4>\",\"WARC-Concurrent-To\":\"<urn:uuid:56f8ff77-1d11-40ce-966b-a17c9734671b>\",\"WARC-IP-Address\":\"23.13.150.165\",\"WARC-Target-URI\":\"https://nl.mathworks.com/matlabcentral/cody/problems/233-reverse-the-vector/solutions/1848877\",\"WARC-Payload-Digest\":\"sha1:I7XCDJKD2TBMK3ZE3PI6L2JU5KESDXZ7\",\"WARC-Block-Digest\":\"sha1:US2XQCXR3DOP7IBQ7YP3BBZNUFGA7XW4\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540488870.33_warc_CC-MAIN-20191206145958-20191206173958-00100.warc.gz\"}"}