Heap sort algorithm is sorting algorithm that uses a data structure called heap. A Heap is a data structure similar to a binary tree (nearly completed) saved into an array. Heap Sort runs in O(n lg n) time. The main property of a heap is that it must maintain the Heap-Property. The Heap-Property depends on the
Merge Sort algorithm is one of the most common algorithms in books. It is the most used example to explain the divide and conquer technique. Furthermore, it is one of the easiest algorithms that has a reasonable running time for a big input => O(n log n). How Merge Sort algorithm works? This graph shows the process: If you
When one is starting to learn about algorithms, one of the first examples is Insertion Sort algorithm. The classic example to introduce Insertion Sort algorithm is how a poker player sorts a hand of cards in increasing order: Every time he gets a new card from the deck, he compares it to the cards which are already
We are going to learn how to use the new feature of iOS8: Today Extension (Widget for your notification center screen). We are going to take, as the base project, the one explained here. You will learn:
At the end of the post you will have a widget that gets data from its container app. The app gets stock values from Yahoo Finance API and the widgets recovers the last one received from AAPL.
In the first part of the tutorial “Swing Copters – Swift Copters” we establish the base of the game. In this chapter, we are going to finish the job implementing:
At the end of the post you will have a game like this:
In this tutorial you are going to learn how to use SpriteKit and Swift for iOS8! We are going to make a game like Swing Copters (last game of Flappy Bird creator), in order to choose an easy and well-know example. Here is the full list of features that you will learn today:
See the video with the final app:
In the first chapter of this series, we designed a model, created a mockup, and started a swift project, ending up with the first viewController -the tableView- with some hardcoded stocks and values.
In this second post, we are going to explain:
What you will learn:
In order to get the stock values, we will use Yahoo Finance API. Hope you enjoy this tutorial!