"error: subscripted value is neither array nor pointer nor, So to write the program I made a vector of the type node as in: estados=malloc (n*sizeof (node)); and the idea was to use each position of the node vector to … Value with C-subscript is not a vector, pointer or arr...
Two passes: all pointer linking info will be recorded in 1st pass - to hashmap; 2nd pass recover the pointer relationship from hashmap. 1A! classSolution {public: RandomListNode*copyRandomList(RandomListNode *head) {if(!head)returnNULL; vector<RandomListNode *>vec; unordered_map<RandomListNode...