Skip to content

Commit 8603e35

Browse files
committed
#1346: improve formatting
1 parent 4c85c0b commit 8603e35

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

c-sharp/Problems/arrays-and-hashing/CheckIfNandItsDoubleExist.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* 1346
33
* Check If N and Its Double Exist
44
**
5-
* Given an array arr of integers, check if there exist two indices i and j such that:
5+
* Given an array arr of integers,
6+
* check if there exist two indices i and j such that:
67
* • i != j
78
* • 0 <= i, j < arr.length
89
* • arr[i] == 2 * arr[j]
@@ -28,10 +29,12 @@
2829
* maintaining in a hashTable the array elements from [0, i - 1].
2930
*
3031
* Hint 2:
31-
* On each step of the loop check if we have seen the element 2 * arr[i] so far.
32+
* On each step of the loop check
33+
* if we have seen the element 2 * arr[i] so far.
3234
*
3335
* Hint 3:
34-
* Also check if we have seen arr[i] / 2 in case arr[i] % 2 == 0.
36+
* Also check if we have seen
37+
* arr[i] / 2 in case arr[i] % 2 == 0.
3538
**
3639
* https://leetcode.com/problems/check-if-n-and-its-double-exist/
3740
***/

0 commit comments

Comments
 (0)