DEV Community


Posted on

Good real Time practice algorithm

Recently in my internship, I came across making a form in a certain component. I got stuck on making a dropdown where you can choose the start time and end time. But there was a bigger issue no matter where I looked online it was hard to find a good guide on what to do. And I wasn't allowed to use any dependencies to help. So I decided to make a real-time algorithm where when you press the dropdown it drops the whole time in 30-minute increments without writing a whole bunch of excess code. Just try it it is a fun practice.

Top comments (0)