Given an array of size N. The task is to choose an arbitrary pair of elements from the Array such that their sum is even, delete these two elements from the Array Read more →
Programs
1 postThere are N student from class 12th,each student finished thier exam and exam consist with four subjects like math, computer, physics and chemistory. Result is announced and result list consist with student Read more →
Given a list of elements p, the task is to convert the whole list into a list of sets. Examples: Input: p = ['apple', 'banana', 'cherry'] Output: [{‘apple’}, {‘banana’}, {‘cherry’}] Explanation : Read more →
We have to create an inverse triangle in the form of numbers (decreasing order). Example: If the user provide 5. The print 5, 5 times ; 4, 4 times and so on. Read more →
Given a number N, the task is to print all duplicate digits of that number in sorted order. Examples: Input: 123412989 Output : 3 4 8 Explanation : The unique digits are Read more →
Given a Rooted Tree with n node, labeled from 1 to n and tree is rooted at node 1. Parent of i-th node is p[i], i is starting from 2 as 1 Read more →
Given an integer array arr[], the task is to find the number of triplets at distinct indices that can be removed from the array such that the mean remains the same as Read more →
Given a non negative number, you are required to find whether or not the number can be composed from sum of some number of 7s, 5s and 3s i.e. if a number Read more →
In this article, we will discuss about Hexahectagon number. According to definition of Hexahectagon number: A Hexahectagon number is class of figurate number. It has 600 – sided polygon called Hexahectagon. The Read more →
In this article, we will discuss some of similar questions that are easy to solve with few changes in solution codes. Leetcode is a platform to practice DSA problems for those who Read more →