Skip to content

Commit af88ead

Browse files
authored
Add comments to solution
Add comments for different solution approaches
1 parent 30a4b2b commit af88ead

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

valid-anagram/OstenHun.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <unordered_map>
1515
using namespace std;
1616

17+
// 첫 번째 풀이 --> 배열 두 개를 이용해서 직접 비교
1718
#pragma region FirstIdea_TwoArrays
1819
namespace first_idea {
1920

@@ -48,6 +49,7 @@ class Solution {
4849
} // namespace first_idea
4950
#pragma endregion
5051

52+
// 두 번째 풀이 --> 배열 하나를 사용해서 풀이
5153
#pragma region FinalSolution_OneArray
5254
class Solution {
5355
public:
@@ -74,6 +76,7 @@ class Solution {
7476
};
7577
#pragma endregion
7678

79+
// 세 번째 풀이 --> unordered_map 이용하기
7780
#pragma region Alternative_UnorderedMap
7881
namespace unordered_map_idea {
7982

0 commit comments

Comments
 (0)