- Joined
- 1/21/19
- Messages
- 313
- Points
- 138
Can someone please help me write this piece of code in C++.
I think we can use std:::unordered_set<> but it doesn't work for me.
Thank you
I think we can use std:::unordered_set<> but it doesn't work for me.
Java:
int N = 9;
// Use hash set to record the status
HashSet<Character>[] rows = new HashSet[N];
HashSet<Character>[] cols = new HashSet[N];
HashSet<Character>[] boxes = new HashSet[N];
for (int r = 0; r < N; r++) {
rows[r] = new HashSet<Character>();
cols[r] = new HashSet<Character>();
boxes[r] = new HashSet<Character>();
Thank you