Hackerrank | Plus Minus Problem
Given an array of integers, calculate the ratios of its elements that are positive, negative, and zero. Print the decimal value of each fraction on a new line with places…
Hackerrank Problems | Diagonal Difference
Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example, the square matrix is shown below: The left-to-right diagonal =1+5+9=15. The right to left…
Hackerrank Problems | Compare the triplets
Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality,…
Learning Curves | Machine Learning from Scratch
Till now, We have read about Gradient Descent,Min-Batch Gradient Descent,Stochastic Gradient Descent and other type of Gradient Descents and Polynomial Regression. In this post we will learn about Learning Curves…
Polynomial Regression | Machine Learning from Scratch
Introduction Till now, We have read about Gradient Descent,Min-Batch Gradient Descent,Stochastic Gradient Descent and other type of Gradient Descents. In this post we will learn about Polynomial Regression. What if…
C Program to get Two Sum and Three Sum
When working with arrays, solving problems like finding two elements that sum up to a target or three elements with a specific sum is quite common. In this blog post,…
Datasets Importing and exporting in Python.
What is Dataset? Datasets are container of data in python. It can work as data storage for the various algorithms in python. and also a primary storage of data in…
CRUD Operation in Mongo-cxx
What is CRUD operation ? 2. In Database we generally perform four operation : C – Create : It will be perform create database by Inserting data . R –…
Installing the Mongodb-C Driver (libmongoc) and BSON library (libbson)
Step 1 : Run the Following Command: wget https://github.com/mongodb/mongo-c-driver/releases/download/1.6.3/mongo-c-driver-1.6.3.tar.gz tar xzf mongo-c-driver-1.6.3.tar.gz cd mongo-c-driver-1.6.3 ./configure --disable-automatic-init-and-cleanup --prefix=/usr/local --libdir=/usr/lib64 --with-libbson=bundled make make install Step 2 : To compile and run the…
Installing the mongo-cxx-driver step by step
Step 1 : Download mongo-c-driver Step 2 : Updated GCC and G++ compiler after version 5 .current version 7 in system . Step 3 : Mongo-c-driver Version(1.15.x) version is same…
Install and Secure MongoDB 6.0 on CentOS 7
Step 1: Add the MongoDB Repository First, create a .repo file for MongoDB. This will make sure you can install the latest stable version of MongoDB. Create the repo file:…
Coalesce in SQL
Coalesce is a SQL function used for handling NULL values. It returns the first non-null expression from the list. Each expression is evaluated for being NULL or not and the…