Articles on Trending Technologies

Technical articles with clear explanations and examples

Difference between Chainalysis and Elliptic

Vineet Nanda
Vineet Nanda
Updated on 13-Dec-2022 2K+ Views

Although the adoption of blockchain technology is on the rise, tracking the volume of its transactions remains challenging. There is a growing need for cryptocurrency exchanges and banks to prove that they are not being used to finance terrorism, crime, or other unlawful activities now that cryptocurrencies are accessible on the main network. Legislation has been passed in some countries, including Japan, Singapore, and the United States, requiring the origin of cryptocurrency payments. Chainalysis and Elliptic are two companies that have thrived as a result of the need to keep tabs on the market value of cryptocurrencies. albeit they ...

Read More

Swift program to check whether a number can be expressed as sum of two prime numbers

Ankita Saini
Ankita Saini
Updated on 13-Dec-2022 208 Views

This tutorial will discuss how to write swift program to check whether a number can be expressed as a sum of two prime numbers. Prime numbers are those numbers that are greater than 1 and has exactly two factors that is 1 and the number itself. For example, 7 is the prime number because it has only two factors that are 1 and 7. Here we check that the given number can be expressed as Sum of two prime numbers. For example − Number = 10 So 10 can be expressed as a sum of prime numbers − 3+7 ...

Read More

C++ Program to add an element in the array at the beginning

Arnab Chakraborty
Arnab Chakraborty
Updated on 13-Dec-2022 10K+ Views

The storage of homogenous (same) data across several memory locations is made possible by the use of arrays and data structures. The key benefit of using arrays is that we can use the index argument to retrieve them from anywhere we want. This data structure becomes linear because data must be inserted and withdrawn progressively. All we need to do is place the index or position number for that element inside the square bracket to retrieve it from the array. In this article, we will take array A and another element e. We will insert e into A at the ...

Read More

C++ Program to find the common elements from two arrays

Arnab Chakraborty
Arnab Chakraborty
Updated on 13-Dec-2022 6K+ Views

The usage of arrays, and data structures, allows for the storage of homogeneous (same) data over several memory locations. The main advantage of using arrays is that we can access them from anywhere we want by using the index argument. The fact that data must be added and removed sequentially transforms this data structure into a linear one. To retrieve an element from an array, all we need to do is use the index or position number for that element inside the square bracket. In this article, we will take two arrays and find only the common elements present in ...

Read More

C++ Program to get the last given number of items from the array

Arnab Chakraborty
Arnab Chakraborty
Updated on 13-Dec-2022 528 Views

Arrays are specialized data structures that are used to retain homogenous (similar) data in a series of memory regions. The key benefit of using arrays is that we can use the index parameter to access them from anywhere we want. However, sequential operations are required to insert and delete data, which turns this data structure into a linear data structure. We can simply utilise the index or position number for that element inside the square bracket alone to fetch it from an array. This article will demonstrate how to read the most recent k numbers from an array in C++. ...

Read More

C++ Program to get the first given number of items from the array

Arnab Chakraborty
Arnab Chakraborty
Updated on 13-Dec-2022 1K+ Views

Arrays are special data structures which are used to store or hold similar kind of data (homogeneous data) in consecutive memory locations. The great advantage of using arrays is that, we can access them from any location we want using the index parameter. But to insert and delete it needs sequential operations which makes this data structure a linear data structure. To retrieve an element from array, we can simply use the index or the position number for that element inside the square bracket only. In this article we will see how we can read first k given numbers from ...

Read More

C++ Program to get the subarray from an array using a specified range of indices

Arnab Chakraborty
Arnab Chakraborty
Updated on 13-Dec-2022 12K+ Views

A sequence of memory sections is used to store homogeneous data in an array, a linear sequential data structure. Similar to other data structures, an array needs to have specific qualities to insert, delete, traverse, and update elements efficiently. In C++, our arrays are static. There are also a few dynamic array structures available in C++. In this article, we will see how to get a subarray from a bigger array using starting and ending indices in C++. Understanding the concept with examples Given array A = [10, 14, 65, 85, 96, 12, 35, 74, 69] Given two indices 2 ...

Read More

C++ Program to push an array into another array

Arnab Chakraborty
Arnab Chakraborty
Updated on 13-Dec-2022 8K+ Views

A linear sequential data structure called an array is used to store homogeneous data in a series of memory regions. An array needs to have certain features to insert, delete, traverse, and update elements effectively, just like other data structures do. Our arrays in C++ are static. In addition, C++ offers a few dynamic array structures. There may be a maximum of Z elements that can be stored inside a static array. And there are currently n elements in it. In this article, we will see how to push the elements of one array inside another array in C++. Understanding ...

Read More

Swift program to get the remainder of float numbers using library function

Ankita Saini
Ankita Saini
Updated on 13-Dec-2022 372 Views

This tutorial will discuss how to write swift program to get the remainder of float numbers using library function. A number with fractional component is known as float numbers. For example, 34.5, 2.1, 0.2, etc. We can divide two float numbers with each other to find the remainder and quotient. Remainder is the value left after dividing a number by another number. Below is a demonstration of the same − Input Suppose our given input is − Num1 = 0.16 Num2 = 0.04 Output The desired output would be − Remainder = 0.0 To find the remainder of ...

Read More

Swift program to print spiral pattern

Ankita Saini
Ankita Saini
Updated on 13-Dec-2022 436 Views

This tutorial will discuss how to write swift program to print spiral pattern. Numeric pattern is a sequence of numbers which is used to develop different patterns or shapes like pyramid, rectangle, cross, etc. These numeric patterns are generally used to understand or practice the program flow controls, also they are good for logical thinking. To create a spiral pattern of numbers, we can use any of the following methods − Using nested for loop Using stride Function Below is a demonstration of the same − Input Suppose our given input is − Num = 6 Output ...

Read More
Showing 29531–29540 of 61,248 articles
Advertisements