# Day 46/100: Playing with CodeWars some more

Sun 16 July 2017

Played around with CodeWars and some of the problems on there. Here's one of the solutions I came up with for a question to determine an outlier in the array (eg: one of the elements would be either odd or even).

``````function findOutlier(integers){
let odd = integers.filter(function(n) {return (n%2) !== 0;});
let even = integers.filter(function(n) {return (n%2) === 0;});

if (odd.length < even.length) {
return odd;
} else {
return even;
}
}
``````
{"ft_lang_label":"__label__en","ft_lang_prob":0.71581787,"math_prob":0.8837024,"size":445,"snap":"2023-40-2023-50","text_gpt3_token_len":118,"char_repetition_ratio":0.13151927,"word_repetition_ratio":0.0,"special_character_ratio":0.30337077,"punctuation_ratio":0.15555556,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9695698,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-24T06:46:09Z\",\"WARC-Record-ID\":\"<urn:uuid:44bfda0a-c92e-4008-b1ac-c4bea662e1c5>\",\"Content-Length\":\"9516\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1d61055e-5309-4af8-941e-c612d86670bd>\",\"WARC-Concurrent-To\":\"<urn:uuid:7c893a24-3c92-4fbb-81eb-90e9bab5ab80>\",\"WARC-IP-Address\":\"23.239.24.157\",\"WARC-Target-URI\":\"https://decafbad.net/2017/07/16/day-46100-playing-with-codewars-some-more/\",\"WARC-Payload-Digest\":\"sha1:KKNAGDUNDI3Y5ULD37XAX6EIH7QAR4QH\",\"WARC-Block-Digest\":\"sha1:3XVLEMVZMTSDGCJSR54IGEJHFBXYNMVU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506623.27_warc_CC-MAIN-20230924055210-20230924085210-00260.warc.gz\"}"}