Skip to content

Add Python solution for Word Ladder (practice256) - #257

Merged
Huerte merged 1 commit into
Huerte:mainfrom
YTLim-1206:fix#238
Nov 14, 2026
Merged

Huerte merged 1 commit into
Huerte:mainfrom
YTLim-1206:fix#238

Conversation

@YTLim-1206

Copy link
Copy Markdown
Contributor

Summary

  • use deque to maintain BFS queue
  • return the length of the shortest transformation sequence, or 0 if no valid transformation exists
  • include the example to demonstrate the solution

Related issue

Closes #238

Checklist

  • [✅] The solution includes the required problem, source, and note header comment.
  • [✅] The file is in the correct solutions/<language>/ folder and follows the practice<n> naming convention.
  • [✅] I ran the solution and checked that it works.
  • [✅] I have kept this pull request focused on one change.

@Huerte
Huerte merged commit e98af00 into Huerte:main Nov 14, 2026
1 check passed
@Huerte

Huerte commented Nov 14, 2026

Copy link
Copy Markdown
Owner

@YTLim-1206 Hi there! Thank you for this contribution.

download (6)

@YTLim-1206
YTLim-1206 deleted the fix#238 branch November 14, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement the Word Ladder solution - BFS shortest transformation (practice256)

2 participants