Skip to content
Advertisement

Tag: data-structures

Get dependencies Ids Algorithm

I have this problem and I came out with a solution but what is the best way to solve this problem ? Thank you in advance. Given an array of strings and an array of tasks you need to return a sorted array with tasks and dependencies tasks ids. Example: Expected output: So far this is the solution I built,

Create Array From Key

Thank you in advance. Is there any way to create a multidimensional array from key names. Transform to this array. Thank you ! Answer Try my code (I used the reference operator “&” to get the successive inner arrays): Input array: php code: Result array:

Where does Facebook store multi millions of Images and Videos. In database or somewhere else? if so, Where? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 10 months ago. Improve this question I am completely new to database. I require some information regarding where does the Facebook which stores millions and millions of

Advertisement