Skip to content

[LeetCode] #17. Letter Combinations of a Phone Number (DFS, Medium) #54

@Cheolsker

Description

@Cheolsker
  1. 재귀함수(DFS)와 2) index 번째의 graph를 이용해서 모든 문자열 경우의 수를 구함

재귀함수 로직

  1. index == digits.length이면 재귀함수 종료
  2. 재귀함수를 실행할 때마다 문자열을 누적함

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions