Circular and Linear Progress Indicators in Flutter

Vaibhav Ahire
Updated on 14-Mar-2023 15:25:50

1K+ Views

What are Progress Indicators in Flutter? Progress Indicators are used to display the current progress of the specific task which is being carried out within our android application. If we are loading some data from the internet or making an API call. In that case to handle the loading task we display progress indicators within our application to inform the user that data is being loaded. There are two types of progress indicators which we can display within our application. Linear Progress Indicator − This indicator is used to display a linear progress bar which displays the current progress ... Read More

Bundle in Android with Example

Vaibhav Ahire
Updated on 14-Mar-2023 15:25:03

8K+ Views

What are Bundles in Android? In this tutorial, we are going to learn on How to use bundles in our android application using Kotlin as a programming language. Bundle is a class in android which is used to pass data from one activity to another activity within an android application. We can pass data using key and value pairs using bundles. We can pass the data using the key and can use that same key to retrive the data which is passed for that key. Implementation We will be creating a simple application in which we will be simply displaying ... Read More

Base Expandable List Adapter in Android with Example

Vaibhav Ahire
Updated on 14-Mar-2023 15:23:47

2K+ Views

What is the Base Expandable List Adapter in android? Base Expandable List Adapter is used in android when we have to display a nested list view. We will understand a nested list view by an example. We have to display the tech stacks along with the programming languages used within it. So we can display the tech stacks in the list view such as Android Development, IOS Development and Web Development. Each tech stack has their set of different programming languages so we can display the list of programming languages when a user clicks on any of the tech stack. ... Read More

Auto Image Slider in Android with Example

Vaibhav Ahire
Updated on 14-Mar-2023 15:21:44

13K+ Views

What is an Auto Image Slider in Android? In this tutorial, we are going to learn on How to implement an Auto Image Slider in our android application using Kotlin as a programming language. Auto Image Slider is a UI widget which contains multiple images sliding automatically from left to right or in opposite directions. This type of feature is seen in many ecommerce applications which are used to display different types of banners to the customers using auto image slider widget. Implementation of Auto Image Slider We will be creating a simple application in which we will be simply ... Read More

Stormer Numbers

Rinish Patidar
Updated on 14-Mar-2023 15:07:04

403 Views

For N to be a stormer number, the highest prime factor of the expression N^2+1 must be greater than or equal to 2*N and it should be a positive integer. For example, 4 is a stormer number. Since 4*4+1=17 has the greatest prime factor 17 itself which is greater than 8 i.e. 2*4. But 3 is not a stormer number because 3*3+1=10. The greatest prime factor of 10 is 5 which is less than 6 i.e. 2*3. In this problem, we are given a positive integer N and our goal is to print the first N stormer. INPUT: 4 ... Read More

Print First N Fibonacci Numbers Using Direct Formula

Rinish Patidar
Updated on 14-Mar-2023 15:05:24

895 Views

In this article, we are going to solve the problem of printing first n Fibonacci Numbers using a direct formula. In mathematics, the fibonacci numbers often denoted by Fn (which indicates nth fibonacci number), form a series in which each number is equal to the sum of the preceding two numbers. The nth fibonacci number can be indicates as below − $$\mathrm{Fn\:=\:F_{n-1}\:+\:F_{n-2}}$$ The series begins with 0 and 1. The first few values in the fibonacci sequence, starting with 0 and 1 are − 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144. ... Read More

Number of Ones in the Smallest Repunit

Rinish Patidar
Updated on 14-Mar-2023 15:03:25

365 Views

In this problem, we simply need to print the number of ones in the smallest repunit. A repunit is a positive number like 11, 111, or 1111 in recreational mathematics that only has the digit 1. A repunit is of the form $\mathrm{(10*n-1)/9}$ Example $\mathrm{(10*10-1)/9}$ gives 11. $\mathrm{(10*100-1)/9}$ gives 111. $\mathrm{(10*1000-1)/9}$ gives 1111. The above problem states that we are given any positive integer N with its unit digit 3 and we need to determine the smallest repunit that is divisible by the given number N. For example, If we are given N=13. Output: 6 N i.e. 13 perfectly divides ... Read More

Network File Systems Pre-Fetch

Satish Kumar
Updated on 14-Mar-2023 14:58:54

454 Views

Introduction In a networked computing environment, file systems allow users to access and manage files across different computers and storage devices. Network file systems (NFS) are a type of file system that enables remote file access and sharing between machines over a network. In NFS, a client machine can access files stored on a remote server as if they were on its local file system. One common question that arises regarding network file systems is whether they pre-fetch data to improve performance. In this article, we will explore concept of pre-fetching in network file systems and provide examples of how ... Read More

Multiply the Given Number by 2 to be Divisible by 10

Rinish Patidar
Updated on 14-Mar-2023 14:55:40

341 Views

This problem statement says that we are allowed to perform only one operation i.e. multiply the given number by 2 such that it is divisible by 10. We will be given a number say n. The only operation that we can perform on a given number is that we can multiply the given number by 2 until it is divisible by 10. We need to determine the minimum number of operations required to make the number such that it is divisible by 10 by repeatedly multiplying the given number n by 2. Else, print -1 if it is not possible ... Read More

Minimum Steps to Obtain N Using Addition or Subtraction

Rinish Patidar
Updated on 14-Mar-2023 14:52:03

466 Views

From the above problem statement, our task is to get the minimum steps in which a given number N can be obtained using addition or subtraction at every step. We can understand that we need to print the minimum number of steps that we can perform and sequence of the steps on any given integer N to reach the number starting from 0 by addition or subtraction of the step number. In this problem set, we can add or subtract the number equal to the step count from the current location at each step. For instance, we can add either ... Read More

Advertisements