How did Algeria become an independent state?

A. by fighting France to win independence
B. by having its independence granted by the international community following World War II
C. by giving land to France in exchange for independence
D. by negotiating peacefully with France for a gradual transition to independence