Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions container-with-most-water/soobing.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏷️ 알고리즘 패턴 분석

  • 패턴: Two Pointers
  • 설명: 이 코드는 좌우 포인터를 이동시키며 최대 용량을 찾는 방식으로, 두 포인터를 활용하는 'Two Pointers' 패턴에 속합니다. 효율적인 탐색을 위해 포인터를 한쪽씩 이동시키는 전략을 사용합니다.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 3rd tried
/**
*
* 문제 설명
Expand Down
1 change: 1 addition & 0 deletions design-add-and-search-words-data-structure/soobing.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏷️ 알고리즘 패턴 분석

  • 패턴: Trie
  • 설명: 이 코드는 문자열 검색을 위해 Trie 자료구조를 사용하며, DFS를 통해 와일드카드 문자 '.'를 처리합니다. 효율적인 문자열 검색을 위해 Trie 패턴이 적용되었습니다.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 3rd tried
/**
*
* 문제 설명
Expand Down
1 change: 1 addition & 0 deletions longest-increasing-subsequence/soobing.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏷️ 알고리즘 패턴 분석

  • 패턴: Dynamic Programming
  • 설명: 이 코드는 최장 증가 부분 수열을 찾기 위해 DP 배열을 사용하여 이전 원소들과의 관계를 기반으로 값을 갱신하는 방식으로 해결합니다. 시간복잡도는 O(n^2)이며, DP 패턴에 속합니다.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 3rd tried
/**
*
* 문제 설명
Expand Down
1 change: 1 addition & 0 deletions spiral-matrix/soobing.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏷️ 알고리즘 패턴 분석

  • 패턴: Two Pointers
  • 설명: 이 코드는 경계값을 조절하며 배열을 순회하는 방식으로, 양 끝에서 포인터를 이동시키는 Two Pointers 패턴을 사용합니다.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 3rd tried (test)
/**
*
* 문제 설명
Expand Down
1 change: 1 addition & 0 deletions valid-parentheses/soobing.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏷️ 알고리즘 패턴 분석

  • 패턴: Stack / Monotonic Stack
  • 설명: 이 코드는 괄호의 열림과 닫힘을 스택 구조로 관리하여 유효성을 검사하므로 스택 패턴에 속합니다. 스택을 이용해 괄호 쌍을 추적하는 전형적인 방법입니다.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 3rd tried
function isValid(s: string): boolean {
const result: string[] = [];
const open = ["(", "[", "{"];
Expand Down
Loading