Python
Precautions When Initializing Elements of a 2D Array with the Same Value
This post is one of reflection ㅠㅠ I want to correct the mistakes I made while taking the coding test! Problem Definition The issue here is about initializing and modifying array elements. I initialized a 2D array with the same elements in Python like this. two_arr = [[False] * 2] * 5 When you look at the output:
March 2, 2022