Project Euler

What is Project Euler? Project Euler is a series of challenging problems that require mathematical and programming skills. Somebody who enjoys learning new area of mathematics, project Euler is going to be a fun journey. Where are the problems ? The problems are right here in their official archive. Let’s solve a problem from the… Read More »

Find the next identical calendar year

You are given an year Y, find the next identical calendar year to Y. Examples: Input : 2017 Output : 2023 Input : 2018 Output : 2029 An year x is identical to a given previous year y if following two conditions are satisfied. x starts with same day as y. If y is leap… Read More »

Instance Initialization Block (IIB) in Java

In a Java program, operations can be performed on methods, constructors and initialization blocks. Instance Initialization Blocks or IIB are used to initialize instance variables. IIBs are executed before constructors. They run each time when object of the class is created. Initialization blocks are executed whenever the class is initialized and before constructors are invoked.… Read More »

JavaScript Backend basics

The following article is to get started with back end development using JavaScript. This article would cover the basics and rules used in JavaScript. JavaScript Engine Each browser has its own JavaScript engine which is used to support the JavaScript scripts in order for them to work properly. Below are the names of the JavaScript… Read More »

Browser Automation Using Selenium

Selenium is a powerful tool for controlling web browser through program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C# etc, we will be working with Python. Mastering Selenium will help you automate your day to day tasks like controlling your… Read More »

Multiply Large Numbers represented as Strings

Given two numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find sum of these two numbers. Examples: Input : num1 = 4154 num2 = 51454 Output : 213779916 Input : num1 = 654154154151454545415415454 num2 = 63516561563156316545145146514654 Output : 41549622603955309777243716069997997007620439937711509062916 The idea is based… Read More »