A woman wounded three people at YouTube's headquarters near San Francisco this week before taking her own life. Police said the shooter, Nasim Aghdam, was angry with the company because she believed it was suppressing her videos. Police had questioned Aghdam on the day of the attack after her father had warned them that she may go to the office, but they said she denied planning to hurt anyone.
Other major headlines of the week included the 50th anniversary of Dr. Martin Luther King's assassination, President Trump publicly addressing the Stormy Daniels allegations for the first time and the death of anti-apartheid activist Winnie Madikizela-Mandela.
Click through the slideshow above to see photos from all of these events and more, and be sure to check back next weekend for our selection of the best photography from the week.