
Linear Diophantine Equation
A Linear Diophantine Equation (in two variables) is an equation of the general form: $$ax + by = c$$ where $a$, $b$, $c$ are given […]
A Linear Diophantine Equation (in two variables) is an equation of the general form: $$ax + by = c$$ where $a$, $b$, $c$ are given […]
While the Euclidean algorithm calculates only the greatest common divisor (GCD) of two integers $a$ and $b$, the extended version also finds a way to represent GCD […]
Given two non-negative integers $a$ and $b$, we have to find their GCD (greatest common divisor), i.e. the largest number which is a divisor of both $a$ […]
Binary exponentiation (also known as exponentiation by squaring) is a trick which allows to calculate $a^n$ using only $O(\log n)$ multiplications (instead of $O(n)$ multiplications […]
This Java program Implements JobStateReasons API.Class JobStateReasons is a printing attribute class, a set of enumeration values, that provides additional information about the job’s current […]
This Java program Implements CopyOnWriteArraySet API.A Set which is best suited for applications in which set sizes generally stay small, read-only operations vastly outnumber mutative […]
This Java program Implements RoleUnresolved API.A RoleUnresolvedList represents a list of RoleUnresolved objects, representing roles not retrieved from a relation due to a problem encountered […]
This Java program Implements CopyOnWriteArrayList API.A thread-safe variant of ArrayList in which all mutative operations (add, set, and so on) are implemented by making a […]
This Java program Implements RoleList API.A RoleList represents a list of roles (Role objects). It is used as parameter when creating a relation, and when […]
This Java program Implements AttributeList API.Represents a list of values for attributes of an MBean. Here is the source code of the Java Program to […]
This Java program Implements Vector API.The Vector class implements a growable array of objects. Like an array, it contains components that can be accessed using […]
This Java program Implements Stack API.The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with five operations that allow a […]
This Java program Implements SynchronousQueue API.A blocking queue in which each insert operation must wait for a corresponding remove operation by another thread, and vice […]
This Java program Implements PriorityQueue API.An unbounded priority queue based on a priority heap. The elements of the priority queue are ordered according to their […]
This Java program Implements PriorityBlockingQueue API.An unbounded blocking queue that uses the same ordering rules as class PriorityQueue and supplies blocking retrieval operations. While this […]
This Java program Implements LinkedTransferQueue API.An unbounded TransferQueue based on linked nodes. This queue orders elements FIFO (first-in-first-out) with respect to any given producer. The […]
This Java program Implements LinkedBlockingQueue API.An optionally-bounded blocking queue based on linked nodes. This queue orders elements FIFO (first-in-first-out). The head of the queue is […]
This Java program is to Implement DelayQueue API.An unbounded blocking queue of Delayed elements, in which an element can only be taken when its delay […]
This Java program is to Implement ConcurrentLinkedQueue API.An unbounded thread-safe queue based on linked nodes. This queue orders elements FIFO (first-in-first-out). The head of the […]
This Java program is to Implement ArrayBlockingQueue API.A bounded blocking queue backed by an array. This queue orders elements FIFO (first-in-first-out). The head of the […]