Joseph Jude

All Articles under swift

2016.05.12
Solving Euler-005 in Swift

Know your algorithms

2016.05.07
Double loops are slower in Swift than in Python & Typescript

Swift is pathetically slow to handle double loops

2016.05.07
Timing code execution in Swift, Python & Typescript

How to track execution time of a code block

2016.05.06
Largest palindrome made from the product of two 3-digit numbers

Solution to Project Euler 004 problem in Swift, Python & Typescript

2016.05.04
Largest prime factor of the number 600851475143

Solution to Project Euler 003 problem in Swift, Python & Typescript

2016.05.02
Sum of even valued Fibonacci numbers less than 4 million

Solution to Project Euler 002 problem in Swift, Python & Typescript

2016.05.02
Find the sum of all the multiples of 3 or 5 below 1000

Solution to Project Euler 001 problem in Swift, Python & Typescript

2016.04.28
Export sqlite data to text files using Swift

Export sqlite data to text files using Swift

2016.01.06
Swift Challenge 009: Count upper and lower case letters in a string

Write a program to count upper and lower case letters in a given string.

2016.01.03
swift Challenge 008: Check if a string is a pangram

Write a program to check if the string entered by the user is a pangrams. Pangrams are sentences constructed by using every letter of the alphabet at least once.

2015.12.25
swift Challenge 007: Luhn's Algorithm

Validate credit card number with Luhn's algorithm

2015.12.24
Swift Challenge 006: Stringify even numbers

Take an array of numbers, concatenate the even numbers as a string

2015.12.23
Swift Challenge 005: Sort comma separated words

Write a program that takes a comma separated sequence of words and prints the words in a comma-separated sequence after sorting them alphabetically.

2015.12.22
Swift Challenge 004: Factorial of n

Write a program to compute factorial of a number.

2015.12.20
Swift Challenge 003: Unique elements of two arrays

Write a program to make an array of unique elements from two arrays. Sort the output array.

2015.12.19
Swift Challenge 002: Check if a string is palindrome

Check if a string is a palindrome -- it reads the same forwards as backwards like racecar

2015.12.19
Swift Challenge 001: Divisible by 7 but not a multiple of 5

Program to find all numbers which are divisible by 7 but are not a multiple of 5, between 2000 and 3200