Team MCK
Count the triplets in C
Count the triplets in C
Problem statement: Given an Array of distinct integers, count all the triplets such that the sum of two elements equals...
Print Inversions in an array in C
Print Inversions in an array in C
Problem statement: Print Inversions in an array. In an array two elements a and a form an inversion...
First C Program
We will write our first C program.
Here, #include is a preprocessor directive.
<stdio.h> is the C standard Input Output library. It is used to getting...
Reverse a string using stack
Problem Statement: Reverse a string using stack in C.
Here we have used an array to implement the stack.
/*Reverse a string using stack. Implement your...
Rearrange an array such that arr[i] = i in C
Problem statement
Consider an array having N elements. Rearrange the array such that A = i and if i is not present, replace it with...
Cyclically rotate an array by k elements in C
Problem statement: Cyclically rotate an array by k elements in C
Example:
input = {1, 2, 3, 4, 5, 6};
Key = 2
output = { 3, 4,...
Cyclically rotate an array by one in C
Problem statement: Cyclically rotate an array by one in C
Example:
input = {1, 2, 3, 4, 5, 6};
output = {6, 1, 2, 3, 4, 5};
...
Get started with Go
Prerequisite:
Install go on your machine
Some basic programming knowledge
Code editor of your choice
Terminal or Command prompt
1. Create a directory at your Home directory
$ cd
$...
Find the middle of a given linked list in C
Find the middle of a given linked list in C
Problem Statement: Given a Singly Linked list find the middle.
In the following approach, two pointers...
Application of DBMS
Different DBMS software is used in different sectors. Some of the DBMS software are MYSQL, Oracle, PostgreSQL, SQLite, Microsoft SQL Server. Following are some...