Alice is playing an arcade game and wants to climb to the top of the leaderboard and wants to track her ranking. The game uses Dense Ranking, so its leaderboard works like this: The player with the highest score is ranked number 1 on the leaderboard. Players who have equal scores receive the same ranking number, and the […]

READ MOREGiven an array of integers, find and print the maximum number of integers you can select from the array such that the absolute difference between any two of the chosen integers is less than or equal to 1. For example, if your array is [1, 1, 2, 2, 4, 4, 5, 5, 5], you can create two […]

READ MOREProblem Defined a magic square n x n to be a matrix of distinct positive integers from 1 to n^2 where the sum of any row, column, or diagonal of length n is always equal to the same number: the magic constant. The given 3 x 3 a matrix s of integers in the inclusive range [1, 9]. The […]

READ MOREOn my last project, I had a multi-segment progress indicator challenge. On the first version of the design, this indicator was a half-circle, and I have a half-circle progress indicator post too. UIBezierPath’s way to draw shapes and animations isn’t too easy, and it was interesting for me, to do it in the right way […]

READ MORETaxi or travel apps always need to show the direction of travel on the map. In these quick tutorials, I will show you how to set up, show, and test the directional marker on the maps. Completed tutorial on Github here So, at first, we need these keys in info.plist file. These settings will allow […]

READ MOREI want to share my experience in custom progress indicator creation. I will show how to create a custom progress indicator drawn with UIBezierPath like bellow: So let’s start with the idea. We need to create 3 layers (CALayer) for the first indicator, and 2 layers for the second indicator. The main trick that 3 […]

READ MOREThe main goal of this article is to share my experience in formatting data. Most of the apps have to show date, time, list of data, or transform and display mass, angle, duration, area, speed, volume, energy, length, temperature, pressure, and other kinds of measurements. It is very important to display data in the right […]

READ MORE