How to implement an algorithm for the Fractional Knapsack Problem

By Saurabh Singh

In this Java tutorial, we are going to implement an algorithm for the fractional knapsack problem. Knapsack Problem Description A thief finds a very big loot than his bag size. We .... Read More

Preorder, Inorder and Postorder traversals without Recursion in Java

By vikrant_tomar

In this Java tutorial, we will learn how to traverse a tree without recursion in Java. We will implement preorder, inorder and postorder traversals without recursion in Java. Preor.... Read More

How to perform Magic Square Operation in a Matrix using Python3

By Priyam Sur

In this Python tutorial, we are going to learn how to perform a magic square operation in a matrix in Python. Here we will show you an easy example so that you can understand this .... Read More

Uppercase Lowercase Conversion of an Input String in Python3

By Priyam Sur

Uppercase Lowercase Conversion in Python Uppercase Lowercase Conversion of Alphabets: The user inputs a string. The user wants to convert uppercase alphabets to lowercase alphabets.... Read More

Checking for Duplicacy in an array using Hashing Technique in Java

By divyesh srivastava

In this Java tutorial, we are going to check whether an array contains duplicate elements or not using hashing technique. What is Hashing Technique and why we prefer Hashing here? .... Read More

Separate even and odd numbers in an array in Java

By divyesh srivastava

Separate even numbers and odd numbers in an array in Java Given an array[], write a function that segregates even and odd numbers. The functions we are going to create should put a.... Read More

Separate textarea value per line in PHP after submitting HTML form

By Faruque Ahamed Mollick

Suppose you have an HTML form and the form contains a textarea. Now you want to get each line of the textarea content and process them separately in PHP for some purpose. So you ha.... Read More

Armstrong Number Check of a given number in input using Python3

By Priyam Sur

ARMSTRONG NUMBER CHECK in Python Armstrong Number Check: The Number is known as Armstrong Number if and only if the following condition satisfies. Sum of: ((each digitĀ of the Numb.... Read More

Related Posts