Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
Android
Python
C Programming
C++
C#
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Pavitra
has Published
158
Answers
Python Program for Find reminder of array multiplication divided by n
Python
Server Side Programming
Programming
Pavitra
Published on 26-Sep-2019 10:52:27
In this article, we will learn about the solution to the problem statement given below −Problem statementGiven multiple numbers and a number input n, we need to print the remainder after multiplying all the number divisible by n.ApproachFirst, compute the remainder like arr[i] % n. Then multiply this remainder with ...
Read More
Python Program for Find minimum sum of factors of number
Python
Server Side Programming
Programming
Pavitra
Published on 26-Sep-2019 10:47:21
In this article, we will learn about the solution to the problem statement given below −Problem statementGiven a number input , find the minimum sum of factors of the given number.Here we will compute all the factors and their corresponding sum and then find the minimum among them.So to find ...
Read More
Python Program for Find largest prime factor of a number
Python
Server Side Programming
Programming
Pavitra
Published on 26-Sep-2019 10:43:55
In this article, we will learn about the solution to the problem statement given below −Problem statementGiven a positive integer n. We need to find the largest prime factor of a number.ApproachFactorise the given number input by dividing it with the divisor of a number.Now keep updating the maximum prime ...
Read More
Python Program for Fibonacci numbers
Python
Server Side Programming
Programming
Pavitra
Published on 25-Sep-2019 17:48:17
In this article, we will learn about the solution and approach to solve the given problem statement.Problem statement −Our task to compute the nth Fibonacci number.The sequence Fn of Fibonacci numbers is given by the recurrence relation given belowFn = Fn-1 + Fn-2with seed values (standard)F0 = 0 and F1 ...
Read More
Python Program for factorial of a number
Python
Server Side Programming
Programming
Pavitra
Published on 25-Sep-2019 17:34:20
In this article, we will learn about the solution and approach to solve the given problem statement.Problem statement −Our task to compute the factorial of n.Factorial of a non-negative number is given by −n! = n*n-1*n-2*n-3*n-4*.................*3*2*1We have two possible solutions to the problemRecursive approachIterative approachApproach 1 −Recursive ApproachExample Live Demodef factorial(n): ...
Read More
Python Program for Difference between sums of odd and even digits
Python
Server Side Programming
Programming
Pavitra
Published on 25-Sep-2019 16:50:27
In this article, we will learn about the solution and approach to solve the given problem statement.Problem statement −Given an integer, we need to calculate if the difference between the sum of odd digits and sum of even digits is 0 or not.The brute-force approach will be calculating the sum ...
Read More
Python Program for cube sum of first n natural numbers
Python
Server Side Programming
Programming
Pavitra
Published on 25-Sep-2019 16:46:16
In this article, we will learn about the solution and approach to solve the given problem statement.Problem statement −Given an input n, we need to print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term.Here we will discuss two approach to reach ...
Read More
Python Program for compound interest
Python
Server Side Programming
Programming
Pavitra
Published on 25-Sep-2019 16:43:09
In this article, we will learn about the solution and approach to solve the given problem statement.Problem statement −We are given with three input values i.e principle, rate & time and we need to compute compound interest.The code given below shows the process of computation of compound interest.The formula used ...
Read More
Python Program for Check if the count of divisors is even or odd
Python
Server Side Programming
Programming
Pavitra
Published on 25-Sep-2019 16:38:13
In this article, we will learn about the solution and approach to solve the given problem statement.Problem statement −Given a number “n”, find its total number of divisors is even or odd.In this approach, we will be finding all the divisors and checking that the count of divisors is even ...
Read More
Python Program for Check if all digits of a number divide it
Python
Server Side Programming
Programming
Pavitra
Published on 25-Sep-2019 16:32:30
In this article, we will learn about the solution and approach to solve the given problem statement.Problem statement −Given a number n, find whether all digits of n divide it or not.Here we will be checking that there is no 0 in the given number because this will give divide ...
Read More
Previous
1
...
3
4
5
6
7
8
9
...
16
Next
Advertisements