## Mathematics | Graph theory practice questions

Problem 1 – There are 25 telephones in Geeksland. Is it possible to connect them with wires so that each telephone is connected with exactly… Read More »

## Data Preprocessing for Machine learning in Python

• Pre-processing refers to the transformations applied to our data before feeding it to the algorithm. • Data Preprocessing is a technique that is used… Read More »

## C program to print characters without using format specifiers

As we know that there are various format specifiers in C like %d, %f, %c etc, to help us print characters or other data types.… Read More »

## Switch Case in Python (Replacement)

What is the replacement of Switch Case in Python ? Unlike every other programming language we have used before, Python does not have a switch… Read More »

## Reverse a circular linked list

Given a circular linked list of size n. The problem is to reverse the given circular linked list by changing links between the nodes. Examples:… Read More »

## GATE | GATE CS 1996 | Question 55

A demand paged virtual memory system uses 16 bit virtual address, page size of 256 bytes, and has 1 Kbyte of main memory. LRU page… Read More »

## GATE | GATE CS 1996 | Question 54

An 8052 based system has an output port with address 00H. Consider the following assembly language program. ORG 0100H MVI A, 00H LXI H, 0105H… Read More »

## GATE | GATE CS 1996 | Question 53

A logic network has two data inputs A and B, and two control inputs C0 and C1. It implements the function F according to the… Read More »

## GATE | GATE CS 1996 | Question 52

A binary search tree is used to locate the number 43. Which of the following probe sequences are possible and which are not? Explain (A)… Read More »

## GATE | GATE CS 1996 | Question 51

Let f be a function defined by           Find the values for the constants a, b, c and d so that… Read More »

## Program to find gravitational force between two objects

Introduction to Gravitational Force We know that gravity is universal. According to Newton’s Law of Universal Gravitation, all objects attract each other with a force… Read More »

## Python Dictionary Comprehension

Like List Comprehension, Python allows dictionary comprehensions. We can create dictionaries using simple expressions. A dictionary comprehension takes the form {key: value for (key, value)… Read More »

## Program for harmonic mean of numbers

Given an array of elements, find harmonic mean of numbers. Examples: Input : arr[] = {2.0, 1.0} Output : 1.3333 Harmonic mean = 2/(1/2.0 +… Read More »

## Sum 2D array in Python using map() function

Given a 2-D matrix, we need to find sum of all elements present in matrix ? Examples: Input : arr = [[1, 2, 3], [4,… Read More »

## Prime functions in Python SymPy

How to get prime numbers quickly in python using library functions ? Library functions always makes our code easy so here we are going to… Read More »