CᴏᴅɪɴɢNᴇʀᴅ 💸🐾
99 subscribers
118 photos
3 videos
15 files
40 links
༗ हरे कृष्णा ༗
"Lost in my own cosmos 💫 | Coding Need Patience 🥀🐾"

❝Face the failure, Until the Failure fails to face you.❞

— Dreamer

» ChikuX69.netlify.app «

DM ? " @ChikuXBot " : 404;
Download Telegram
Day 58👾:
Given a string s, find the length of the longest substring with all distinct characters.
🔥32👍1
Day 59👾:
Given an array arr[] with non-negative integers representing the height of blocks. If the width of each block is 1, compute how much water can be trapped between the blocks during the rainy season.
🔥3👍2👏1
Day 60👾:
Given an array arr[] of non-negative integers, where each element arr[i] represents the height of the vertical lines, find the maximum amount of water that can be contained between any two lines, together with the x-axis.

Note: In the case of a single vertical line it will not be able to hold water.
👍3🔥1🥰1👏1
Day 61👾:
Given an array of integers arr[], the task is to find the first equilibrium point in the array.

The equilibrium point in an array is an index (
0-based indexing) such that the sum of all elements before that index is the same as the sum of elements after it. Return -1 if no such point exists.
2👏2👍1🔥1
Day 62👾:
Given an array arr[] containing integers and an integer k, your task is to find the length of the longest subarray where the sum of its elements is equal to the given value k. If there is no subarray with sum equal to k, return 0.
🔥31👍1👏1
Day 63👾:
Given an array arr of 0s and 1s. Find and return the length of the longest subarray with equal number of 0s and 1s.
👍31🔥1🥰1
Day 64👾:
Given an array, arr[] construct a product array, res[] where each element in res[i] is the product of all elements in arr[] except arr[i]. Return this resultant array, res[].
Note: Each element is
res[] lies inside the 32-bit integer range.
👍3🔥1👏1💋1
Day 65👾:
Given the head of a linked list, the task is to reverse this list and return the reversed head.
👍2🔥1👏1🍾1💋1
बसंत पंचमी कि हार्दिक शुभकामनाएं 🌹
2🥰2👍1💘1
Day 66👾:
Given the head of a singly linked list, your task is to left rotate the linked list k times.
2👍21🔥1
console.log('A' - 1);
Anonymous Quiz
27%
A1
24%
Error
31%
NaN
18%
64
🔥21👍1
Day 67👾:
Given the head of two sorted linked lists consisting of nodes respectively. The task is to merge both lists and return the head of the sorted merged list.
🔥32👍1
Day 68👾:
Given the head a linked list, the task is to reverse every k node in the linked list. If the number of nodes is not a multiple of k then the left-out nodes in the end, should be considered as a group and must be reversed.
👍211🔥1👏1
Day 69👾:
Given the head of two singly linked lists num1 and num2 representing two non-negative integers. The task is to return the head of the linked list representing the sum of these two numbers.

For example,
num1 represented by the linked list : 1 -> 9 -> 0, similarly num2 represented by the linked list: 2 -> 5. Sum of these two numbers is represented by 2 -> 1 -> 5.

Note: There can be leading zeros in the input lists, but there should not be any leading zeros in the output list.
🔥3👍1🍾1👨‍💻1
Just Random Clicks 📸
3🥰2🆒2👍1🔥1
Day 70👾:
You are given a special linked list with n nodes where each node has two pointers a next pointer that points to the next node of the singly linked list, and a random pointer that points to the random node of the linked list.

Construct a copy of this linked list. The copy should consist of the same number of new nodes, where each new node has the value corresponding to its original node. Both the next and random pointer of the new nodes should point to new nodes in the copied list, such that it also represent the same list state. None of the pointers in the new list should point to nodes in the original list.

Return the head of the copied linked list.

NOTE : Original linked list should remain unchanged.
🔥2👏21👍1
Day 71👾:
You are given the head of a singly linked list. Your task is to determine if the linked list contains a loop. A loop exists in a linked list if the next pointer of the last node points to any other node in the list (including itself), rather than being null.
🔥2👏21👍1
Day 72👾:
Given a head of the singly linked list. If a loop is present in the list then return the first node of the loop else return NULL.

Custom Input format:
A head of a singly linked list and a pos (
1-based index) which denotes the position of the node to which the last node points to. If pos = 0, it means the last node points to null, indicating there is no loop.
👍2🔥21👏1
Day 73👾:
Given the head of a linked list that may contain a loop. A loop means that the last node of the linked list is connected back to a node in the same list. The task is to remove the loop from the linked list (if it exists).

Custom Input format:

A head of a singly linked list and a pos (1-based index) which denotes the position of the node to which the last node points to. If pos = 0, it means the last node points to null, indicating there is no loop.

The generated output will be true if there is no loop in list and other nodes in the list remain unchanged, otherwise, false.
👍4🔥1👏1