[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Am I retarded? If A = [3, 8, 9, 7, 6] and K = 3, shouldn�
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 8
Thread images: 1
File: CyclicRotation.png (110 KB, 561x659) Image search: [Google]
CyclicRotation.png
110 KB, 561x659
Am I retarded?

If A = [3, 8, 9, 7, 6] and K = 3, shouldn't the function return [7, 6, 3, 8, 9] (as opposed to the instructions in pic related)?

https://codility.com/demo/take-sample-test/cyclic_rotation/
>>
>>54517403
You're retarded.
[3, 8, 9, 7, 6] k = 0
[6, 3, 8, 9, 7] k = 1
[7, 6, 3, 8, 9] k = 2
[9, 7, 6, 3, 8] k = 3
>>
>>54517403
Just read it once again, it's described in full detail.
>>
>>54517488
>>54517505
Oh I got the rotation direction wrong. Thank you senpai.
>>
>>54517533
i was just about to insult you until you understood the problem
>>
>>54517557
Please insult me anyway. Use the harshest words possible.
>>
>>54517609
You use Windows.
>>
>>54517775
You fucking crossed the line Anon
way too far
Thread replies: 8
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.