Introduction to Dart Map class

Map is used to store key-value pairs in dart. Value can occur multiple times but each key must be unique. The key is used to retrieve the value associated with it. Map is growable. You can change its length.

Read

Find the product of all odd, even numbers in a python list

In this tutorial, we will learn how to find the product of all odd and even numbers in a list. The program will take the list values as input from the user and print out the product. With this program, you will learn how to use a for loop,if-else condition and how to take inputs in python.

Read

How to parse JSON in TypeScript

JSON or JavaScript Object Notation is an open standard file format used for transferring data. Parsing JSON data is really easy in Javascript or Typescript. Typescript doesn't have any different methods for JSON parsing. We can use the same JSON.parse method used with JavaScript.

Read

Dart set explanation with examples

A set is used to store a collection of objects where each object can exist only once in that set. Set is defined in the dart:core library and a couple of other classes that implement set.

Read

C program to print Floyd's triangle

In this tutorial, we will learn how to print Floyd's triangle in C programming language. It looks like as below :.

Read

Kotlin example program to reverse a number

This tutorial will show you how to reverse a number in Kotlin. We will learn two different ways to do that. The first method will use one loop and the second method will use a different approach to solve it. This program will take the number as an input from the user, calculate the reverse and print it to the user.

Read

Different ways to convert a string to number in TypeScript

Casting a string to number in typescript requires Javascript methods. Typescript doesn’t provide any specific methods for this conversion. Again, we have a couple of different methods in Javascript that can convert one string to a number. In this post, I will show you different ways to do the conversion.With each example, I am using an array of different strings. Each example will try to convert each of these array elements to numbers.

Read

C++ program to find armstrong numbers in a range

Armstrong numbers are numbers with a sum of each digit, each raised to the power of the number of digits is equal to the number itself. For example, 153 is an Armstrong number. The total digits of 153 are 3. Sum of all digits each raised to 3 is :.

Read

JavaScript copyWithin() method example

Javascript copyWithin() method is used to copy a portion of one array in the same array in a range. copyWithin doesn't modify the array size. It just copies the elements to separate indices. This method is useful if you want to copy one part of the array or subarray to another part.

Read

C++ program to count total digits in a number

In this tutorial, we will learn how to count the total digits in a number in C++. The program will ask the user to enter the number. It will count the digits and print it out. We will learn different ways to solve this problem.

Read