Programming tutorials and coding challenges

  • Google Hash Code Pizza Problem: Solved

    Google Hash Code Pizza Problem: Solved

    Solved the pizza practice problem to get ready for the Google Hashcode qualification process.

    Problem-Solving Tournaments#Algorithms#Google hashcode
  • Google Hash Code More Pizza Problem Solution

    Google Hash Code More Pizza Problem Solution

    This year, the Google Hash Code team has proposed a different version of the Pizza practice problem, entitled "More Pizza". The challenge description - as usual - is available for all users registered to the Google Hash Code judge system. Plea...

    Problem-Solving Tournaments#Google hashcode
  • Simulated Annealing algorithm description

    Simulated Annealing algorithm description

    The description of the Simulated Annealing algorithm I used to get maximum score for the More Pizza problem.

    Problem-Solving Tournaments#Algorithms#Google hashcode#simulated annealing
  • Book Scanning Google Hash Code: Problem

    Book Scanning Google Hash Code: Problem

    This article contains a short description of the problem proposed for the Google Hash Code Online Qualification process on Feb 20th, 2020

    Problem-Solving Tournaments#Google hashcode
  • C++ Lambda functions: 3 Powerful Examples

    C++ Lambda functions are largely used for many different purposes. In this post, 3 different examples are proposed to show classical usage of lambda functions.

    Programming Languages#C++ programming
  • Simulated Annealing algorithm | C++ code

    Explore a detailed C++ implementation of the Simulated Annealing algorithm to efficiently solve the More Pizza problem. Ideal for professionals.

    Problem-Solving Tournaments#Algorithms#Google hashcode#simulated annealing algorithm
  • C++ Coding Challenge: Enum Type Size

    C++ Coding Challenge: Enum Type Size

    Master C++ enum sizing with this comprehensive coding challenge. Perfect for technical interviews and competitive programming preparation.

    Coding Challenges#C++ programming#Technical Interviews#Data Structures#Memory Management
  • C++ #pragma pack: Memory Alignment Guide

    C++ #pragma pack: Memory Alignment Guide

    The directive #pragma pack is used to change the current packing alignment value on the internal compiler stack and how data is stored inside a structure.

    Programming Languages#C++#C++ programming#compiler
  • Calculate K-Item Combinations: 2 Methods

    Calculate K-Item Combinations: 2 Methods

    Calculate all combinations of k items taken from a set of n elements is not difficult with the proposed recursive and iterative methods.

    Programming Languages#Algorithms#C++ programming
  • How-to install Raspberry PI Desktop on a VM

    How-to install Raspberry PI Desktop on a VM

    Installing Raspberry PI Desktop (Raspbian) on a Virtualbox VM is very easy and it allows to run some basic scripts on an emulated Raspberry PI board.

    How-to and tutorials#Linux OS#Raspberry Pi#virtual machines
  • Even More Pizza Hash Code 2021: Problem

    Even More Pizza Hash Code 2021: Problem

    '"Even more pizza" is the new practice problem proposed for the Hash code 2021 challenge. The goal is to help an imaginary pizzeria to choose the pizzas to deliver to Hash Code teams.'

    Problem-Solving Tournaments#Google hashcode#pizza problem
  • Even More Pizza Hash Code: C++ Algorithm

    Even More Pizza Hash Code: C++ Algorithm

    'This post contains my C++ source code for the "Even More Pizza" practice problem released for the Google Hash Code, 2021.'

    Problem-Solving Tournaments#Algorithms#Google hashcode#pizza problem
  • Finding min and max values in a C++ container

    Finding min and max values in a C++ container

    How-to use C++ functions min_element() and max_element() to find the elements having the lowest and highest value in a container.

    Programming languages#C++ programming#STL containers
  • Quick C++ std::vector initialization

    Quick C++ std::vector initialization

    How many ways exist to initialize a std::vector in C++? Let's see some examples...

    Programming Languages#C++#C++ programming#STL containers
  • C++ Boost Library v1.75.0 Build & Install Guide

    C++ Boost Library v1.75.0 Build & Install Guide

    Build, install and test the C++ Boost Library (v1.75.0): the basic approach step-by-step to build and install the 32 bit version.

    How-to and tutorials#boost library
  • Git Unstaged Changes After Revert: CRLF/LF Fix

    Git Unstaged Changes After Revert: CRLF/LF Fix

    If Git is not reverting the CRLF/LF characters at the end of the lines of the relevant files, this is what you need to do!

    How-to and tutorials#Git
  • STL Container Inheritance: Why It's Bad Design

    STL Container Inheritance: Why It's Bad Design

    A class must not inherit from a STL container to replicate its behavior and add some few new functionalities. Let's see why...

    Programming Languages#C++#Class design#STL containers
  • One Pizza Hash Code 2022: Problem & Score

    One Pizza Hash Code 2022: Problem & Score

    The "One pizza" problem is the practice problem proposed by Google for the Hash Code challenge 2022. Check the problem description and score.

    #Google hashcode#pizza problem
  • Best C++20 Books: My Reviews & Recommendations

    Best C++20 Books: My Reviews & Recommendations

    Would you like to learn C++20? Do you know which are the best books to learn C++20? Let me share my personal wish list and reviews.

    Programming Languages#books#Modern C++#Reviews
  • Main differences between C and C++

    Main differences between C and C++

    C++ provides OOP and modern features, whereas C is simple and efficient for systems programming. Discover the main differences between C and C++.

    Programming Languages#Ansi C#C++
  • Fix black screen issue for Ubuntu VM in 8 steps

    Fix black screen issue for Ubuntu VM in 8 steps

    Step-by-step guide to resolve Ubuntu VM black screen issues caused by insufficient hard disk space. Quick troubleshooting solution.

    How-to and tutorials#Virtualbox
  • The 5 Mindsets of a Modern C++ Programmer

    The 5 Mindsets of a Modern C++ Programmer

    Learn the 5 mindsets that you need to have in order to master C++. This presentation will cover efficiency, concurrency, debugging, imperative, and functional mindsets.

    Programming Languages#C++ programming
  • Pexels and Unsplash channels now available!

    Just launched our new channels on Pexels and Unsplash where you'll find photos and images to elevate your work!

    Creative & Art#Pexels#Unsplash
  • Beats Detection for Reels using Python

    Beats Detection for Reels using Python

    Do you know you can use Python for automatic beats detection and to optimize the photo transitions timing in your IG and FB reels?

    Programming Languages#Python#Social Networks
  • York River Reflections: Photography & Art

    York River Reflections: Photography & Art

    As an artist, I''m always looking for inspiration, and my recent visit to York did not disappoint. From the peaceful reflections on the River Ouse, the picturesque white boat drifting across the river and the beautiful water mill on the River Fos...

    Creative & Art#Inspiring#Social Networks
  • C++ Rises in Popularity: TIOBE Index Update

    C++ rises in TIOBE Index, Swift's influence grows, and C++'s enduring relevance in programming.

    Programming Languages#TIOBE Index
  • Sunset Walk: My First Watercolor Painting

    Sunset Walk: My First Watercolor Painting

    “A Man Walking at Sunset” is my first watercolor painting, created with professional watercolor tubes and paper.

    Creative & Art#Artwork#sea#sunset
  • C++ noexcept Specifier: Performance Impact

    C++ noexcept Specifier: Performance Impact

    The noexcept specifier have a huge impact on your code performance. Let's briefly try to understand why.

    Programming Languages#C++ programming#Modern C++
  • Return Error Values vs. Exceptions in C++

    C++ offers two primary mechanisms: return values and exceptions. Choosing the right approach affects readability, maintainability, and performance.

    Programming Languages#C++#Exceptions#Error management
  • C++ Object Construction/Destruction Order

    Can you predict the exact order of construction / destruction of these classes? Which is the console output?

    Coding Challenges#C++#Class Hierarchy