Programming

Trie Data Structure in C/C++ — step-by-step Programming tutorial on Progressive Robot

Trie Data Structure in C/C++

URL: https://www.progressiverobot.com/trie-data-structure-in-c-plus-plus/ A Trie data structure acts as a container for a dynamic array. In this article, we shall look at how we can implement a Trie in C/C++. This is based on the tree data structure but does not necessarily store keys. Here, each node only has a value, which is defined based on […]

Read more
Understanding Data Types in Ruby — step-by-step Programming tutorial on Progressive Robot

Understanding Data Types in Ruby

In this tutorial, you’ll learn about the most important data types native to Ruby: integers, floats, strings, symbols, arrays, and hashes. This is not an exhaustive investigation of data types, but it will help you become familiar with the options you have available to you in your programs.

Read more
Understanding Package Visibility in Go — step-by-step Programming tutorial on Progressive Robot

Understanding Package Visibility in Go

Visibility in the Go programming language means the file space from which a package or other construct can be referenced. In this article, you will learn how to control package visibility, as well as how to protect parts of your code that should only be used inside your package. To do this, we will create a basic logger to log and debug messages, using packages with varying degrees of item visibility.

Read more
Using ldflags to Set Version Information for Go Applications — step-by-step Programming tutorial on Progressive Robot

Using ldflags to Set Version Information for Go Applications

In this tutorial, you will use the Go flag -ldflags to change the value of variables at build time and introduce your own dynamic information into a binary, using a sample application that prints version information to the screen. This passes a flag to the underlying Go toolchain linker, cmd/link, that allows you to change the values of imported packages at build time from the command line.

Read more
Builder Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Builder Design Pattern in Java

Today we will look into Builder pattern in java. Builder design pattern is a creational design pattern like [Factory Pattern](/community/tutorials/factory-design-pattern-in-java "Factory Design Pattern in Java") and [Abstract Factory Pattern](/community/tutorials/abstract-factory-design-pattern-in-java "Abstract Factory Design Pattern in Java"). Builder Design Pattern ![builder pattern in java, builder design pattern, builder pattern](images/builder-design-pattern-in-java-section-1.png) Builder pattern was introduced to solve some of […]

Read more
Composite Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Composite Design Pattern in Java

Composite pattern is one of the Structural design pattern. Composite design pattern is used when we have to represent a part-whole hierarchy. Composite Design Pattern ![composite pattern, composite design pattern](images/composite-design-pattern-in-java-section-1.png) When we need to create a structure in a way that the objects in the structure has to be treated the same way, we can […]

Read more
Difference between Abstract Class and Interface in Java — step-by-step Programming tutorial on Progressive Robot

Difference between Abstract Class and Interface in Java

Difference between Abstract Class and Interface is one of the popular interview questions. Abstract Class and Interface are a core part of the Java programming language. Whether to choose an interface or abstract class is a design decision that every architect faces. In my last articles, I have provided as much as possible details about […]

Read more
Fractional Knapsack Using C++ — step-by-step Programming tutorial on Progressive Robot

Fractional Knapsack Using C++

In this article, we will learn to solve the fractional knapsack problem using C++. We will start by looking at the problem statement and then move to the solution. This problem is one of many popular classical problems. It is fairly different than its sibling 0-1 knapsack and [0-N knapsack](/community/tutorials/solving-0-n-knapsack-problem-in-cpp). This is a greedy algorithm […]

Read more
CHAT