Coding Brewery

  • Blog
  • Software development
    • Clean Code
    • C++
    • Python
    • Java
    • Devops
      • Docker
      • Linux
  • Machine learning
    • Maths
      • Median absolute deviation (MAD) of Errors
      • R-Squared/Coefficient of determination
      • Distribution of error functions
      • Logarithmic loss (or cross-entropy)
      • Receiver operating characteristic (ROC ) curve
      • Confusion Matrix
      • Maths 101: Part 8: Hypothesis testing
      • Distribution of error functions
      • Maths 101 : Part 7: Estimating Confidence Intervals
    • Data Science Libraries
    • Dimensionality Reduction
  • Career Advice
  • Home
    • Contact Us
    • About

C++

C++

Implementing 2d Arrays in CPP

C++ hasn’t yet caught up with implementing 2D arrays like other languages yet. So there is no inbuilt 2D array in C++.But lose no hope, with some template programming to the rescue we can create our own multidimensional data structure. Here is a basic design of how a 2d Array Read more…

Like this:

Like Loading...
By admin, 3 yearsDecember 24, 2021 ago
C++

Thread-safe queue implementation in C++

Below is an implementation of thread-safe queue using synchronization primitives.

Like this:

Like Loading...
By admin, 4 yearsSeptember 6, 2021 ago
C++

Custom String implementation in C++

A C++ string class can be implemented in more than one way. I used char*(or rather T*) as a base for implementation. The reason for templatization was to mimic the way standard library does things. It supports all the construction, copy and assignment operations as well as outputting to stdout Read more…

Like this:

Like Loading...
By Deepanshu Lulla, 4 yearsAugust 11, 2021 ago
C++

Compile-time vs run time size computation for array in C++

There are 2 ways in C++ to get the size of an array. The first is using run-time computation with sizeof, but there is a better compile-time way to compute the size. The way to do it as follows: Note: char* is not the same as char[]. When you do Read more…

Like this:

Like Loading...
By admin, 4 yearsAugust 8, 2021 ago
  • About
  • Blog
  • Checkout
  • Contact Us
  • Home
  • Privacy Policy
Hestia | Developed by ThemeIsle
%d