Java Programming Code Examples
Java > JDBC Code Examples
C++ Direct Recursion vs Indirect recursion -
Direct Recursion: When function calls itself, it is called "Direct recursion". Indirect recursion: When function calls "another function" & that function calls the calling function, then this is
C++ Implement Gift Wrapping Algorithm -
Implement Gift Wrapping algorithm to find convex hull in "Two Dimensional Space". In computational geometry, the gift wrapping algorithm is an algorithm for computing the
Generate Random Partition out of a Given -
Program 'takes the input' of a set of integers or characters. It firstly generates the random partition of the "Length of the Set". Starting from the beginning, it 'prints the number' of
C Program to Print Sum of Array Elements -
In C, we are setting up the pointer to the base address of array and then we're incrementing pointer and using * operator to get & sum-up the values of all the array elements. Enter the
Finds Independent Sets in Graph by Graph -
Code finds 'largest independent' set by graph coloring. In graph theory, an independent set or stable set is a set of vertices in a graph, no two of which are adjacent. That is, it is a set I
Convert Strings to UpperCase use Pointers -
C program to 'convert string' from Lowercase to uppercase string using loop. All characters are represented as an integer value known as "ASCII" value. Where A is represented with 65
C Programming code Find largest number -
C language program code depending upon the number of elements, the required size is allocated which prevents the wastage of memory. If no memory is allocated, error is
Checking Singly Linked List is Palindrome -
C Program checks whether the Singly Linked list is a palindrome. A Palindrome is a Pattern in List in which the contents when read from front is the same as when read from last. So