In this article, the readers will learn how to solve the fractional knapsack problem, by a greedy algorithm.

# Explore

## How to Solve the 0/1 Knapsack Problem

In this article, the readers will learn how to solve the 0/1 knapsack problem, by a dynamic algorithm.

## Quick-Sort Algorithm: How to Sort an Array

In this article, the readers will learn how to sort an array of integers using the quick.sort algorithm

## How to Get All Permutations of a String

In this article, the readers will learn how to find all the permutations of a given string of characters.

## How to Do a Binary Search on a Sorted Array

In this article, the readers will learn two possible ways of finding the missing numbers from a set of n-1 numbers taken from a 1-n sequence.

## How to Find the Missing Number From an Array of Integers

In this article, the readers will learn two possible ways of finding the missing numbers from a set of n-1 numbers taken from a 1-n sequence.

## How to Reverse a String Keeping Special Characters in Place

In this article, we will discuss how to reverse a String containing special characters in Java, keeping the their original positions.

## How to Reverse a String

In this article, we will discuss how to reverse a String in Java, using two different approaches, improving the space efficiency in the second solution.

## How to Create a Deep or a Shallow Copy in Java

In this article, we will discuss the differences between a deep copy and and shallow copy of an object in Java, and their implications.

## How to Better Understand Java HashMap

How the HashMap class is internally implemented, its initial capacity and re-sizing and its behavior in a multi-threaded scenario.