typescript

TypeScript string search method

Typescript string search method search(). We can use a regular expression to use with search or we can directly search for any substring.

Read
python

Python program to find the nth number which is square and cube of another number

Python program to find the nth number which is square and also cube of another number. Print all numbers from 1 to n which are square and cube of another number.

Read
python

Python program to convert key-value string to dictionary

Python program to convert a key-value string to a dictionary. We will learn how to do that by using split and by using map in python.

Read
python

Python program to count total repeating digits in a number

Python program to count the total number of repeating digits in a given number. We will learn two different ways to solve this problem.

Read
python

Python program to count total digits in a string in four ways

Python program to count digits in a string. We will learn how to do that by using a loop, using sum(), using map() and using regular expression.

Read
swift

Find the maximum of n values using max() in Swift

In this post, we will learn how to use the max() function with different examples. We will use it to find the maximum of n different values.

Read
swift

Find the smallest of n values using min() in Swift

In this post, we will learn how to use the min() function with different examples. We will use it to find the minimum of n different values.

Read
swift

Swift program to find the smallest of three numbers

Three different ways in swift to find the smallest of three numbers. We will learn how to find the smallest value by using a separate function and by using min function

Read
swift

3 Swift programs to find the largest of three numbers

Three different ways in swift to find the largest of three numbers. We will learn how to find the largest value by using a separate function and by using max function

Read
python

Python program to check if a series is Geometric progression

Learn how to check if a series is Geometric progression or GP or Geometric series in Python. This program will take one array and print one boolean value based on the input array.

Read