mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-02 21:54:26 +08:00
fix(ru): align proofreading corrections with the Simplified Chinese original (#2004)
* docs(ru): correct proofreading issues in prose and code examples * docs(ru): align proofreading edits with Simplified Chinese source * fix(ru): repair generated Zig statements and complete comment translations
This commit is contained in:
@@ -24,7 +24,7 @@ def linear_search_linkedlist(head: ListNode, target: int) -> ListNode | None:
|
||||
"""Линейный поиск (связный список)"""
|
||||
# Обойти связный список
|
||||
while head:
|
||||
if head.val == target: # Найти целевой узел и вернуть его
|
||||
if head.val == target: # Целевой узел найден, возвращается этот узел
|
||||
return head
|
||||
head = head.next
|
||||
return None # Целевой узел не найден, вернуть None
|
||||
|
||||
Reference in New Issue
Block a user