From 0de2050bff8c1f18a4dc8f55120265194286e731 Mon Sep 17 00:00:00 2001 From: Zebulan Stanphill Date: Tue, 26 Mar 2019 23:54:06 -0500 Subject: [PATCH] Fix missing variable declaration in data structures challenges (Arabic) (#35636) --- .../add-elements-at-a-specific-index-in-a-linked-list.arabic.md | 2 +- .../remove-elements-from-a-linked-list-by-index.arabic.md | 2 +- .../remove-elements-from-a-linked-list.arabic.md | 2 +- .../data-structures/search-within-a-linked-list.arabic.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.arabic.md index cd5937c1da..b058337256 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.arabic.md @@ -56,7 +56,7 @@ function LinkedList() { if(head === null){ head = node; } else { - currentNode = head; + var currentNode = head; while(currentNode.next){ currentNode = currentNode.next; diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index.arabic.md index 26c7568df5..76d8c0359d 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index.arabic.md @@ -60,7 +60,7 @@ function LinkedList() { if(head === null){ head = node; } else { - currentNode = head; + var currentNode = head; while(currentNode.next){ currentNode = currentNode.next; diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.arabic.md index 7e2555fcfb..da08be7205 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.arabic.md @@ -58,7 +58,7 @@ function LinkedList() { if(head === null){ head = node; } else { - currentNode = head; + var currentNode = head; while(currentNode.next){ currentNode = currentNode.next; diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/search-within-a-linked-list.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/search-within-a-linked-list.arabic.md index 09a315a1a6..c8116e9773 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/search-within-a-linked-list.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/search-within-a-linked-list.arabic.md @@ -60,7 +60,7 @@ function LinkedList() { if(head === null){ head = node; } else { - currentNode = head; + var currentNode = head; while(currentNode.next){ currentNode = currentNode.next;