{"version":"1.0","type":"rich","title":"n/2 times","description":"This example demonstrates a majority-element search on a fixed array, checking whether the value 2 occurs more than half the time. It shows the input array `[10,2,2,2,8]` and a resulting array where positions holding a 2 are preserved and all others are marked as `'no match'`. The visualization displays this outcome in large, browser-rendered text. Built with plain JavaScript, the code uses a `for` loop and conditional logic to compare each element against the target, logging the processed array to the console. No external libraries or canvas APIs are involved.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4d4480a7bfd34d0b8892922df219363a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}