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, we’ll explore simple implementations in C for both the two-sum and three-sum problems using both iterative and recursive methods. Two Sum Problem Iterative Approach The … Read more

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 – Read : It will be perform Read operation of database. U – Update : It will be perform Update Database by using unique key. D … Read more

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 program use following command: gcc -o filename filename.c $(pkg-config –libs –cflags libmongoc-1.0) Issues: 1. $(pkg-config –libs –cflags libmongoc-1.0) , this command in above command is … Read more