Question: what part of the brain is affected by lack of oxygen?
Answer: This is called diffuse brain damage = damage anywhere in the brain. In particular, the temporal lobe (at the temples) is sensitive to oxygen deficiency which is also where the memory is situated. A lack of oxygen from three to nine minutes can result in irreversible brain damage!