CᴏᴅɪɴɢNᴇʀᴅ 💸🐾
Open in Telegram
༗ हरे कृष्णा ༗ "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;
Show more376
Subscribers
No data24 hours
-57 days
-48430 days
Posts Archive
Day 72👾:
Given a head of the singly linked list. If a loop is present in the list then return thefirst nodeof the loop else returnNULL. 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. Ifpos = 0, it means the last node points to null, indicating there is no loop.
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.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.
Day 69👾:
Given the head of two singly linked listsnum1andnum2representing two non-negative integers. The task is to return the head of the linked list representing the sum of these two numbers. For example,num1represented by the linked list :1 -> 9 -> 0, similarlynum2represented by the linked list:2 -> 5. Sum of these two numbers is represented by2 -> 1 -> 5. Note: There can be leading zeros in the input lists, but there should not be any leading zeros in the output list.
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.
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.
Day 66👾:
Given the head of a singly linked list, your task is to left rotate the linked list k times.
Day 65👾:
Given the head of a linked list, the task is to reverse this list and return the reversed head.
Day 64👾:
Given an array,arr[]construct a product array,res[]where each element inres[i]is the product of all elements inarr[]exceptarr[i]. Return this resultant array,res[]. Note: Each element isres[]lies inside the32-bitinteger range.
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.
Day 62👾:
Given an arrayarr[]containing integers and an integerk, your task is to find the length of the longest subarray where the sum of its elements is equal to the given valuek. If there is no subarray with sum equal tok,return 0.
Day 61👾:
Given an array of integersarr[], 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 -1if no such point exists.
Day 60👾:
Given an arrayarr[]of non-negative integers, where each elementarr[i]represents the height of the vertical lines, find the maximum amount of water that can be contained between any two lines, together with thex-axis. Note: In the case of a single vertical line it will not be able to hold water.
Day 59👾:
Given an arrayarr[]with non-negative integers representing the height of blocks. If the width of each block is1, compute how much water can be trapped between the blocks during the rainy season.
Day 58👾:
Given a string s, find the length of the longest substring with all distinct characters.