-
You are given a linked list of size N,
where n is even, the i-th node (0-indexed) of the linked list is known as the twin of the (n-1-i)th node, if 0
-
You are given a sorted array in increasing order, you are required to remove the duplicates [in-place] such that each unique element appears only once. The relative order of the elements should be kep…
-
-
You are given with an array of integers and an integer K. You have to find and print the count of all such pairs which have difference K.
Note: Take absolute difference between the elements of the ar…
-
You are given a string s consisting of only lowercase English letters. In one operation, you can:
1. Delete the entire string s, or
2. Delete the first i letters of s if the first i letters of s a…
-
Please assign me this issue
-
Given a string s, you are to return the longest palindromic substring in s.
@Parul-Mann Please could you assign to me this issue
0xDVC updated
7 months ago
-
Problem-
Place N chess queens on an N×N chessboard so that no two queens attack each other.
Example : if n=4 then the following is a solution for the 4 Queen problem.
0 1 0 0
0 0 0 1
…
-
-
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. Note that the overall run time complexity should be O(log (m+n))
Example:
Inpu…