Hackerrank | Magic Square
We define a magic square to be an n*n matrix of distinct positive integers from 1 to n^2 where the sum of any row, column, or diagonal of length n…
Code in a Better Way
We define a magic square to be an n*n matrix of distinct positive integers from 1 to n^2 where the sum of any row, column, or diagonal of length n…
Two cats and a mouse are at various positions on a line. You will be given their starting positions. Your task is to determine which cat will reach the mouse…
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,…
What is CRUD operation ? 2. In Database we generally perform four operation : C – Create : It will be perform create database by Inserting data . R –…
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…