Topological Sort in C and C++

Here you will learn and get program for topological sort in C and C++. We know many sorting algorithms used to sort the given data. It may be numeric data or strings. Take a situation that our data items have relation. They are related with some condition that one should happen only after other one …

Topological Sort in C and C++ Read More »

Python Linear Search

Here you will get program for linear search in python. Linear search is one of the simplest searching algorithm in which targeted item in sequentially matched with each item in a list. It is worst searching algorithm with worst case time complexity O (n). Below is its implementation. Also Read: Python Binary Search Program for …

Python Linear Search Read More »

Null Pointer in C

In this tutorial you will learn about null pointer in C with examples. When we declare a pointer, by default it points to some random memory location. If you will access the pointer then it may give some undesired value or the program may crash. What is Null Pointer in C? A pointer pointing to …

Null Pointer in C Read More »

Python Program to Convert Decimal to Binary, Octal and Hexadecimal

Here you will get python program to convert decimal to binary, octal and hexadecimal. Python provides inbuilt functions for conversion of one number system to another. Convert decimal to binary using bin() function. In converted binary form 0b is present at the beginning. Convert decimal to octal using oct() function. In converted octal form 0o is present …

Python Program to Convert Decimal to Binary, Octal and Hexadecimal Read More »