Introduction Have you ever wondered how to achieve a circular-like functionality with an array? For example, let's say you have a component that displays a list of items. You can navigate the list by clicking "Next" and "Previous" buttons. When you r...
tigerabrodi.blog4 min read
Great writeup.
With my primary focus being on websites, I tend to use modulos for zebra stripes with an even/odd class. Although I've used it for circular functionality in slides a couple of times as well.
this is helpful for the rotation of arrays too where we do
int[] temp = temp[(i + rotations) % arr.length] = arr[i]
Sorry, I have used Java im super comfortable with java for problem solving because i have been using this for a year
anyways great blog
Simon AKKAD
greate