From c39a8ea44380775c390a1b5ad3e7f5d64bb4cdfd Mon Sep 17 00:00:00 2001 From: kashvi7440 Date: Wed, 24 Jul 2024 21:33:43 +0530 Subject: [PATCH 1/2] Added solution for leetcode problem no 1100 --- .../0100-0199/0138-copy-list-with-random-pointer.md | 7 +++---- ...find-k-length-substrings-with-no-repeated-characters.md | 0 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 dsa-solutions/lc-solutions/1100-1199/1100-find-k-length-substrings-with-no-repeated-characters.md diff --git a/dsa-solutions/lc-solutions/0100-0199/0138-copy-list-with-random-pointer.md b/dsa-solutions/lc-solutions/0100-0199/0138-copy-list-with-random-pointer.md index 2b355a6ff..193d3a24e 100644 --- a/dsa-solutions/lc-solutions/0100-0199/0138-copy-list-with-random-pointer.md +++ b/dsa-solutions/lc-solutions/0100-0199/0138-copy-list-with-random-pointer.md @@ -2,7 +2,6 @@ id: copy-list-with-random-pointer title: Copy List With Random Pointer -level: medium sidebar_label: Copy List With Random Pointer tags: - Hash Table @@ -43,12 +42,12 @@ Output: [[3,null],[3,0],[3,null]] ### Constraints: - The number of nodes in the list is in the range [0, 1000]. -- -10000 <= Node.val <= 10000 -- Node.random is null or is pointing to a node in the linked list. +- `-10000 <= Node.val <= 10000` +- Node.random is null or is pointing to some node in the linked list. --- -## Approach to Solve the Copy List with Random Pointer Problem +## Approach to Solve the Copy List with Random Pointer Problem To create a deep copy of a linked list with an additional random pointer, follow these steps: diff --git a/dsa-solutions/lc-solutions/1100-1199/1100-find-k-length-substrings-with-no-repeated-characters.md b/dsa-solutions/lc-solutions/1100-1199/1100-find-k-length-substrings-with-no-repeated-characters.md new file mode 100644 index 000000000..e69de29bb From cf923656005652ada897802385482c2deb8bc9d9 Mon Sep 17 00:00:00 2001 From: Kashvi7440 <112798525+kashvi7440@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:48:30 +0530 Subject: [PATCH 2/2] Update 0138-copy-list-with-random-pointer.md --- .../0100-0199/0138-copy-list-with-random-pointer.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dsa-solutions/lc-solutions/0100-0199/0138-copy-list-with-random-pointer.md b/dsa-solutions/lc-solutions/0100-0199/0138-copy-list-with-random-pointer.md index 8ac7d8c46..2314923cc 100644 --- a/dsa-solutions/lc-solutions/0100-0199/0138-copy-list-with-random-pointer.md +++ b/dsa-solutions/lc-solutions/0100-0199/0138-copy-list-with-random-pointer.md @@ -43,12 +43,7 @@ Output: [[3,null],[3,0],[3,null]] - The number of nodes in the list is in the range [0, 1000]. - `-10000 <= Node.val <= 10000` -<<<<<<< HEAD - Node.random is null or is pointing to some node in the linked list. -======= -- Node.random is null or is pointing to a node in the linked list. ->>>>>>> d1e5b6b9625337acbd0c1a6ab0f47200eec03e80 - --- ## Approach to Solve the Copy List with Random Pointer Problem