Write a C and Java program to print Right-angled Triangle pattern formed by star(*) character.
In this post, we will discuss various methods to dynamically allocate memory for 2D array in C using Single Pointer, Array of Pointers and Double Pointer.
Write a C and Java program to print triangle patterns of stars.
In this post, we will see how to convert String in Java to different wrapper types and primitive data types supported by Java.
This post discusses about grep utility and provides java code to search exceptions in a huge log file on windows server.
The extended Euclidean algorithm is an extension to the Euclidean algorithm, which computes, besides the greatest common divisor of integers a and b, the coefficients of Bézout’s identity, that is integers x and y such that ax + by = gcd(a,b)
Write a C/C++ program to find generators of cyclic group. A cyclic group is a group that is generated by a single element. That means that there exists an element g, say, such that every other element of the group can be written as a power of g. This element g is the generator …
Write a C/C++ program to solve given simultaneous pairs of Linear Congruence Equations using Chinese remainder theorem. The Chinese remainder theorem is a theorem which gives a unique solution to simultaneous linear congruences with coprime moduli. In its basic form, the Chinese remainder theorem will determine a number p that, when divided by some …
Write a C/C++ program to find general solution to given Linear Congruence Equation.
Write a C/C++ program to solve given simultaneous pairs of Linear Congruence Equations.
In this post, we will see how to get an iterator over a primitive array in Java. The iterator should be able to iterate over the values in the specified array.
Write a C/C++ program to find general solution of Linear Diophantine equation. A linear Diophantine equation is a first degree (linear) polynomial whose solutions are restricted to integers.