Java Programming Code Examples
Java > Servlets Code Examples
Program to Check if a Binary Tree is a BST -
Returns true if the given tree is a BST and its values are >= min & <= max. Allocates a new node with the data and "NULL" left and right pointers. The Given Binary Tree is a "BST" or
C Program code to Multiply two Matrices -
Read elements in two matrices and multiply them. Matrix multiplication program in C. How to multiply matrices in C programming. Input elements in first matrix from user and...
C++ language Implements the Hill Cypher -
Program to implement hill cipher. In classical cryptography, the Hill cipher is a polygraphic substitution cipher based on 'Linear Algebra'. Following discussion assumes an elementary
C++ language Declare a Variable as Static -
In the C++ Programming, The static keyword allows a variable to maintain its value among different function calls. If the value of a static variable changes when the variable has been
Implement Slicker Algorithm that Avoids -
Program to find the "Area of Ploygon" using "Slicker Algorithm". algorithm assumes the usual mathematical convention that positive y points upwards. Enter the number of points
C++ Sorts a given Data using Stooge Sort -
Stooge sort is a recursive sorting algorithm. It Divides the Array into 2 overlapping parts, 2/3 each. Sort the first part. Sort second part and again sort the first part. Then Print the Result
Print stuff to a File Reading the number of -
Write a c programming example to print stuff to a file reading the number of time for an other file. Program code to read the number from a file. Program code to write to the file.
Multiply Two Matrix by Multi Dimensional -
In this program, "enter the size "of 2 matrix at first. To multiply two matrices, the number of columns of first matrix should be equal to the "number of rows" to second matrix. C++ Code