Author image

Mila Lukic

8 Posts Belgrade, Serbia

Java 8 - Stream.map() Examples

Introduction

A Stream is a sequence of objects that supports many different methods that can be combined to produce the desired result.

They can be created from numerous data sources, which are most often collections but can also be I/O channels, Arrays, primitive data types etc.

It's important to

Continue Reading

How to Access Index in Python's for Loop

Introduction

Python is a very high-level programming language, and it tends to stray away from anything remotely resembling internal data structure. Because of this, we usually don't really need indices of a list to access its elements, however, sometimes we desperately need them.

In this article, we will go over

Continue Reading

JavaScript: == vs === Operator

Introduction

Comparison operators are used in logical statements to determine whether two variables or objects are equal by some already set or custom defined criteria. If the two variables or objects are deduced to be equal the operator returns true, and false if they aren't.

Comparison operators in JavaScript are:

Continue Reading

Insertion Sort in JavaScript

Introduction

In this article, we will explain what the idea behind Insertion Sort is and implement it in JavaScript.

Insertion Sort is one of the simpler sorting algorithms. It's highly intuitive, stable, in-place, and of comparison-type.

A stable sorting algorithm is an algorithm in which two objects with equal keys

Continue Reading

Selection Sort in JavaScript

Introduction

Selection Sort is one of the simpler and more intuitive sorting algorithms. It is an in-place, unstable, comparison algorithm.

This means that it transforms the input collection using no auxiliary data structures and that the input is overridden by the output (in-place algorithm).

Additionally, during its execution, it only

Continue Reading

Programming Language Processors

Introduction

Nowadays, most programs are written in a high-level language such as C, Java, or Python. These languages are designed more for people, rather than machines, by hiding some hardware details of a specific computer from the programmer.

Simply put, high-level languages simplify the job of telling a computer what

Continue Reading