8 posts tagged with “interview

Solving in the Lonely Integer Problem in Swift

February 19, 2019

Suppose you have an array of elements (integers), each element in the array occurs twice in the array except for one. How would you find…

What does ?: do in Kotlin?

February 10, 2019

One of the weird symbols that you may see in Kotlin code is , which is known as the elvis operator . What does it do though? Basically…

How to write code for the only the DEBUG build in Swift

February 09, 2019

One of the common things that you may want to do is run code that is only available in the development configuration. For example; a…

Understanding how to use with in Kotlin

February 04, 2019

Kotlin has many useful tricks that makes developers lives a lot easier. For example, using is super useful for changing multiple…

How to add two Dictionaries together in Swift

January 26, 2019

In a lot of objects, it's easy to add them together, think arrays, integers, and strings. However, when you try to add two dictionaries…

Easy Peasy Merge Sort in Kotlin

January 23, 2019

Merge Sort is an efficient, comparison oriented, general-use sorting algorithm. In many different interview scenarios, you will be asked to…

Raw Values vs Associated Values in Swift

January 20, 2019

Raw values are used to associate constant (literal) values to enum cases. The value type is part of the enum type, and each enum case must…

WTH is Strong, Weak, Unowned in Swift?

January 19, 2019

A reference is whenever we declare a variable without specifying its reference type, it will always be strong. A reference being strong…

Browse all tags