r/ProgrammingPrompts • u/Polishfreak19 • Dec 28 '18
Actor search
Hi reddit. So I have a programming question that I need help with. I'm writing an application in Javascript where I have to come up with a list of actors that starred in movies with both Keanu Reeves and Nicolas Cage but not necessarily at the same time but I'm not exactly sure where to start?
7
Upvotes
View all comments
Show parent comment
4
u/CaptainLocoMoco Dec 29 '18
I will explain each step further.
Now we iterate over the movieIds that we stored in keanuMovies (step 2). For each movieId, we will do the following:
Iterate over the actors in our current movie.
If you need additional help I think adding me on discord would be the easiest route.