Python map(lambda) function explanation with example

Learn how to use map in python with an iterable like list or tuple. map takes one function and applies it on each element of the iterable. It returns the modified iterable.

Read

How to reverse a linked list in C++

Learn how to reverse a linked list in C++. In this post, I will show you how to reverse a linked list using the algorithm that uses one temporary node.

Read

How to accept sequence of numbers in python and find out the average

Python program to accept a sequence of numbers. In this post, we will write one python program that takes one sequence of numbers from the user and prints out the average value.

Read

C++ linked list example to delete a node

Learn how to delete a node in singly linked list in C++. Deleting a linked list node can be achieved by connecting the predecessor node with successor node of the linked list.

Read

C++ linked list insert nodes to start and end

Learn how to insert nodes to start and end of a linked list in C++. Inserting a node is not difficult if we follow the steps. This post will explain the process of inserting nodes.

Read

python program to do inplace replace of string in a file

Python program to do inplace replacement of strings in a file. Read the file line by line and replace one specific string in the lines of the file.

Read

Python program to generate secure random string of length n

Python program to generate secure random string of length n. Learn random.choice and secrets.choice methods and how these methods works.

Read

How can we print spaces in python

Learn how to print spaces or blank spaces in python. We will learn two different ways to print spaces in python - by using print() and using a variable.

Read

Singly linked list implementation in c++

Singly linked list implementation in C++. Learn how to implement linked list, add node to it and display a linked list in C++.

Read

How to find the length of a string in swift

Learn how to find the length of a string in swift. This post will show you how to find the length of a string in swift with example program.

Read