Timeline for Count repetitions of an array
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 25, 2019 at 16:20 | comment | added | Gymhgy | @PaulKaram I didn't notice that, thanks! | |
| Feb 25, 2019 at 16:20 | history | edited | Gymhgy | CC BY-SA 4.0 | added 132 characters in body |
| Feb 25, 2019 at 7:13 | comment | added | Paul Karam | Or just >1 to keep the 40 bytes count | |
| Feb 25, 2019 at 6:26 | comment | added | Paul Karam | Your output is wrong, it needs to count the elements with 2 or more occurences. It should be n=>n.GroupBy(c=>c).Count(c=>c.Count()>=2). The OP says the answer of this list is 2. Your code returns 5. The change I gave you returns 2. | |
| Feb 25, 2019 at 4:04 | history | edited | Gymhgy | CC BY-SA 4.0 | deleted 3 characters in body |
| Feb 24, 2019 at 19:03 | history | answered | Gymhgy | CC BY-SA 4.0 |