@codetourtiktok: System design challenge #computerscience #software

Chris Flannery / Code Tour
Chris Flannery / Code Tour
Open In TikTok:
Region: US
Wednesday 26 April 2023 18:55:37 GMT
88810
5860
361
100

Music

Download

Comments

jacob_gibbons44
jacob_gibbons44 :
actually i’d use a dictionary just to mess with the other devs
2023-04-27 18:23:28
257
therealmwils
Matthew Wilson :
Performance isn’t going to matter.
2023-04-26 19:27:44
0
leirbag220
Gabriel Ballon :
Array:, is faster and in a restaurant the simplest fastest answer is the best for delivery speed
2023-04-27 00:57:49
0
yousef.alowayed
Yousef Alowayed :
comma delimited string
2023-04-28 00:18:49
171
egglessnoodle55
nunya business :
linked list bc of orders getting sent back or modifications to orders, it's simpler to perform
2023-04-26 19:43:33
4
kbb1231w
kbb1231w :
2 linked lists and a set. First list for all orders. Second priority list for orders sent back and a set to keep track of modified orders.
2023-04-27 13:58:27
100
tintin210122
tintin210122 :
it's almost like a Queue exists for this very purpose.
2023-04-27 22:01:25
49
aguo133
aguo133 :
I understand that the link list would be more efficient however, in practice, we would need a way to modify orders efficiently in case of
2023-04-26 22:19:37
0
smugane
s :
a doubly linked list?
2023-04-27 16:45:45
1
mv.mp4
mv :
Linked list. Just pushing to the end and popping from the front (don’t need to access by index), and arrays aren’t resizable
2023-04-27 03:21:24
1
aaronrussakov
Aaron Russakov :
I would use a Queue funnily enough
2023-04-27 21:25:41
2
afrocentric_king
Me :
Thats soon just going to be a good prompt than an awesome coding challenge. I am so sad.
2023-04-26 19:20:34
0
hollogramz
crypto_ai :
rmq ??
2023-04-27 22:23:00
0
realmo00o
realmo00 :
Stack collection as its FIFO
2023-04-28 02:08:35
0
davidani_
davidani :
I’m only a student but I would use the linked list because random access isn’t technically needed whereas when orders are completed they are removed
2023-04-29 02:43:16
0
kindragonrc
Kindragonrc :
Depends on the language. Js? A set to keep the orders in order. Python? A dict with autoincrement keys.
2023-04-27 02:48:39
1
crankypeacock
Crankypeacock :
I’d use sqs fifo
2023-04-27 21:39:13
1
lemme_emi_
Emilie :
Access the list thru the DOM and use .push() and .shift() (I’m in bootcamp rn and still learning)
2023-05-16 00:02:21
1
jennyferpackis
Jennyfer Packis :
use queue 😅
2023-04-27 17:15:23
2
milkfreelactose
milkfreelactose :
a full fledged database, because performance doesn't matter, but you'd want to keep an archive of all the orders and a way to search and filterthrough
2023-04-28 16:41:06
0
jexan
Jexan8k :
i will use powerpoint slides
2023-04-29 22:48:54
0
u84889392977
857838485893 :
store in dB, then select order by time frame in order?
2023-04-28 18:51:16
2
cyberdude813
Cyberdude813 :
Array for sure. Modified orders should be minimal or can a part of a secondsry array to keep the orders moving
2023-04-27 06:19:17
0
bombrider_
V O İ D :
Chris Flannery! Brother how on earth would I know
2023-04-27 10:43:47
0
bluesdave11
bluesdave11 :
I would build an excel spreadsheet and use a VB Macro to add/edit/select entries , 1990’s style.
2023-04-27 23:02:26
18
To see more videos from user @codetourtiktok, please go to the Tikwm homepage.

Other Videos


About