imsavva.com

Folder icon

Tags / task

Programming competition and a small Java task

showPostImage(-933165126)

Uncaught exception: the image is currently being shown in a museum

Last week we had a programming competition at work which consisted of some small tasks. One of them was to check, if we can make a given string palindrome by adding one letter in any place. Shame on me, I didn't manage with this task on time. However I got the third place in this competition. 🏆😁 So the task: Your app…
Posted on
2016-04-27

Java task. Fibonacci sequence.

showPostImage(1086603326)

Uncaught exception: the image is currently being shown in a museum

Fibonacci numbers are a number sequence, where first two numbers are 1 and 1 or 0 and 1. Each subsequent number is the sum of previous two numbers. This task is often asked by interviewers (not only in Java). Let's solve it in two ways: using a loop and recursion. To see a recursive solution of this task, click "read…
Posted on
2016-03-21