Skip to content

Category Archives: Algorithms

Given two arrays x[] and y[] of N integers, the task is to form an array z[] of x[i] + y[j], (0 ≤i, j <… Read More
Prerequisite: NP-Completeness, NP Class, Clique Problem: Given an undirected graph G = (V, E) and an integer K, determine if there is a kite subgraph… Read More
Prerequisite: NP-Completeness, NP Class, SAT  Problem: The MAX-SAT problem which is built on top of SAT(Boolean Satisfiability Problem) problem takes a boolean formula in conjunctive… Read More
INTRODUCTION: A string is a sequence of characters, often used to represent text. In programming, strings are a common data type and are used for… Read More
Cognizant is an American multinational information technology services and consulting company, headquartered in new jersey, US. It has broadly two units. The vertical units focus… Read More
Given a string  S of length N containing small-case English alphabets and an integer K, the task is to find the maximum possible length of… Read More
A multinational information technology company based in India, Infosys Limited offers business consulting, IT, and outsourcing services. Founded in Pune and headquartered in Bangalore, Infosys… Read More
Given a number N, the task is to find the minimum number X such that A(X) = N, where A(X) for positive integer X is… Read More
Given an integer array A[] of length N (N >= 1), the task is to print the total number of indices in the array that… Read More
Given two integers L and R, where  L < R, the task is to find Co-prime numbers X and Y such that L <= X… Read More
Given two integers L and R, construct an array of given size N such that the GCD (Greatest Common Divisor) of the element with their… Read More
Given two even numbers A, and B, the task is to find the minimum number of operations required to make both numbers equal if it… Read More
Facebook(Meta) is an online social media and social networking service owned by the American company Meta Platforms. It employs around 72000 people across the globe… Read More
Google is an American multinational technology company specializing in search engine technology, online advertising, cloud computing, computer software, quantum computing, e-commerce, and artificial intelligence. It… Read More

Start Your Coding Journey Now!