## Alternate XOR operations on sorted array

Given an array arr[] and two integers X and K. The task is to perform the following operation on array K times: Sort the array.… Read More »

- Data Structures and Algorithms Online Courses : Free and Paid
- Count pairs in array whose sum is divisible by K
- Why companies like Amazon, Microsoft, Google focuses on Data Structures and Algorithms : Answered
- Travelling Salesman Problem implementation using BackTracking
- Longest subsequence such that adjacent elements have at least one common digit
- Count common characters in two strings
- Double Knapsack | Dynamic Programming
- Coin Change | BFS Approach
- Design a Chess Game
- Comparison among Bubble Sort, Selection Sort and Insertion Sort
- Interactive Problems in Competitive Programming
- Microsoft Interview experience for full time position of software engineer at Microsoft Ireland Research
- Minimum number of cubes whose sum equals to given number N
- Count of integers of length N and value less than K such that they contain digits only from the given set
- Complexity Analysis of Binary Search
- Merge two BSTs with constant extra space
- Rearrange characters in a string such that no two adjacent are same using hashing
- Spanning Tree With Maximum Degree (Using Kruskal's Algorithm)
- Microsoft TechSetGo Summer Internship Interview Experience
- Find the number of binary strings of length N with at least 3 consecutive 1s
- Count how many times the given digital clock shows identical digits
- Program to generate all possible valid IP addresses from given string | Set 2
- Find a triplet in an array whose sum is closest to a given number
- Print path from root to all nodes in a Complete Binary Tree
- Rearrange numbers in an array such that no two adjacent numbers are same
- Range Queries to Find number of sub-arrays with a given xor
- Find maximum meetings in one room
- Count number of ways to reach destination in a maze
- Difference Between BFS and DFS
- Find the sum of the diagonal elements of the given N X N spiral matrix

Given an array arr[] and two integers X and K. The task is to perform the following operation on array K times: Sort the array.… Read More »

Given two integers N and X. The task is to find the sum of tan(x) series up to N terms. The series : x +… Read More »

An ellipse is described as a curve on a plane that surrounds two focal points such that the sum of the distances to the two… Read More »

Given a tree with N nodes and N-1 edges with root at 1 and given an array of N-1 integers. The task is to assign… Read More »

Given an array a of size N and an integer K, the task is to divide the array into K segments such that sum of… Read More »

Given an array a of size N. The task is to merge all elements in the array and find the maximum possible value. One can… Read More »

Given a tree and a node, the task is to reverse the path till the given Node and print the in-order traversal of the modified… Read More »

Implement a dictionary using Trie such that if the input is a string representing a word, the program prints its meaning from the prebuilt dictionary.… Read More »

Given the vertices of a triangle and length of its sides. A circle is inscribed in a triangle. The task is to find the incenter… Read More »

Given a binary array arr[], the task is to find the length of the longest sub-array of the given array such that if the sub-array… Read More »

Given an integer array arr of size N. The task is to find the maximum possible elements in the array which are divisible by 2… Read More »

Given an array arr[] and two integers K and D, the task is to find exactly K pairs (arr[i], arr[j]) from the array such that… Read More »

Given four integers X, Y, P and Q such that X ≤ Y and gcd(P, Q) = 1. The task is to find minimum operation… Read More »

Given a number N. The task is to find the number of ways you can draw N chords in a circle with 2*N points such… Read More »

Given an array of size N and an integer K. The task is to partition the array in K segments such that bitwise AND of… Read More »