Min Heap in C++

A Million of the Smallest Numbers in a Set of a Billion Numbers

There are many ways to solve this problem. We will focus only on three of them: sorting, the minimum of the heap and ranking.


We can sort the items in ascending order, then take the first million numbers. This requires O(nlog(n)) time. Continue reading

Clean My Code: 5 Tips to Make Your Code Cleaner

“How do I clean my code?” You may have this thought after completing your code for the first time. However, if you don’t think about this, you definitely should. It is very important to clean your code if you would like to be a successful programmer. In the sample that you will see below, our expert will explain to you how to clean your code in simple steps.

Firstly, we should provide you with information about the author who gives you the tips that you are going to get acquainted with. Assignment.EssayShark looks for talented experts that are ready to share their knowledge and experience with students. One of our experts has completed useful tips on coding so you no longer have to ask, “How do I clean my code?” All of our experts possess higher academic degrees and all of them are very experienced. Therefore, you have the ability to receive advice from a person who is knowledgeable in theory and also has practical experience.

On Assignment.EssayShark you can find different types of samples. Some of them look like tutorials, while others look like a completed task. If you need to take a look at completed tasks, you should look through our other samples. You will find many examples on diverse topics and in different disciplines. We can provide you with samples in biology, physics, math, programming and many other disciplines.

If you need to know how to clean your code, look at our sample without hesitation. If you have some questions about our service or about the samples, you can contact us anytime! Continue reading

Xamarin Examples: Using Icon Fonts

Nowadays, mobile developers have to work with a large amount of screen resolutions. Earlier applications had to contain a lot of the same pictures with different sizes to make icons display correctly. A few years ago, the icon font toolkit called Font Awesome became very popular. It gives developers an opportunity to escape from the large amount of pictures and flexibly adapt their products to different screen resolutions.

So, let’s start with the creation of the icon font. To do this we will need images in SVG format and a free service. I will use glyphter.com, which allows the use of a lot of different icons for free.

using-icon-fonts-on-xamarin-1 Continue reading

Python Assignment Example: Installing Python and Pip on PC

First, you should download the Python installer. Go to the official site python.org/downloads/ and download the latest version:


After the download, run it and follow the instructions of the wizard. The default installation path is C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python35-32. You can change it using the “Customize installation” button. Don’t forget check the the box for “Add Python 3.5 to PATH”. Otherwise, you will have to do it manually. After it is done, click “Install Now”. Continue reading

Information Technology Assignment Example: Installing Java on PC

To start programming in Java, you first need to install the software environment on your computer.

1) Download the Java installer.

You can download it from the official Oracle website using this link:


Download the latest version of the JDK. Choose the proper option for your operating system from the table. Remember that you should accept the license agreement to download the file. Continue reading

Assignments on the Web: Increase the Efficiency in Xamarin.Forms

In this guide, I will show how to use the Fody tool to reduce the amount of the required program code, and the use of icon fonts and NcontrolView library for the manual drawing of interface elements.

Business Applications

The first thing you need to know is the definition of the business applications, and differences between them and other kinds of apps.

We usually divide applications into logical groups using such criteria:

– Interface complexity
– Usage of the OS features
– Frequency of the usage Continue reading

Web Assignment Sample: Check for Balanced Parentheses in an Expression

Hello! In this guide, I’ll show you the program to check the balance of different types of parentheses in an expression using C++.

Idea for Implementation

Everything would be much simpler if we had to check only one type of parentheses. If it is required to check the balance of the parentheses of only one type, for example, “(“ and “)”, we can read all the symbols one by one, ignoring all the symbols except the braces. If it is an opening bracket we increase the counter by 1, and if it’s a closing bracket we reduce the counter by one. After the check, it’s easy to define if the expression is balanced. If the counter is bigger than zero, we have more opening brackets. But if it goes lower than zero, we can’t check further. So we will use the stack. Continue reading