## Maximum number of region in which N non-parallel lines can divide a plane

Given N‘, the number of non-parallel lines. The task is to find the maximum number of regions in which these lines can divide a plane.… 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
- Count number of ways to reach destination in a maze
- Rearrange numbers in an array such that no two adjacent numbers are same
- Find maximum meetings in one room
- Range Queries to Find number of sub-arrays with a given xor
- Difference Between BFS and DFS
- Find the sum of the diagonal elements of the given N X N spiral matrix

Given N‘, the number of non-parallel lines. The task is to find the maximum number of regions in which these lines can divide a plane.… Read More »

Given 21 Matchsticks and 2 users, A and B (computer and user respectively). Users can pick matchsticks not more than four at a time. The… Read More »

Given a number N, find the minimum possible sum of digits that can be obtained from a positive Multiple of N. Constraints : 1<=N<=10^5. Examples:… Read More »

Given an array arr[] of size 10 where arr[i] represents the frequency of the digit i. The task is to find the smallest positive number… Read More »

Given three integers N, K and L. The task is to find the average of the first K digits and the last L digits of… Read More »

Given a number N. The task is to find the number of set bits in its binary representation using recursion. Examples: Input : 21 Output… Read More »

Given an array of N elements where each element i, the absolute difference between total elements to the right and left of it are given.… Read More »

Given three integers a, b and c which represents coefficients of the equation of a line a * x + b * y – c… Read More »

Given three integers d, h1, h2 where d represents the length of the diagonal of a quadrilateral. h1 and h2 represents the lengths of the… Read More »

Wythoff array is an infinite matrix of integers derived from the Fibonacci sequence. Every positive integer in the matrix occurs only once. Wythoff array: 1… Read More »

Given an array, find the number of subsequences whose sum is even and the number of subsequences whose sum is odd. Example : Input: arr[]… Read More »

Given an array arr of size N and a number K. The task is to find the minimum elements to be replaced in the array… Read More »

Given a two dimensional grid, each cell of which contains integer cost which represents a cost to traverse through that cell. The task is to… Read More »

Given an array arr[] of size N. The task is to find smaller elements on the right side and greater elements on the left side… Read More »

Given an integer N. The task is to find the Nth prime number. Examples: Input : 5 Output : 11 Input : 16 Output :… Read More »