My Bookmarks

  • No bookmark found

Most Active Members

Monty Hall Problem Solution Using Python

Reference:- https://en.wikipedia.org/wiki/Monty_Hall_problem Problem Statement Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what’s behind the doors, opens another door, say No. 3, which...

Write a program to find maximum of three numbers in Java

AIM: – Write a program to find maximum of three numbers. Here we are writing about Write a program to find maximum of three numbers in Java. Our initiative is that user understand code by reading comment so that he/she can became capable to any understand code in this...

Write a program to find Fibonacci series for a given input in Java

AIM: – Write a program to find Fibonacci series for a given input. Here we will Write a program to find Fibonacci series for a given input in Java to help this java world members. Hope so you would like it, we are trying to make program easier by...

Write a program to find factorial of a given number in Java

AIM: – Write a program to find factorial of a given number. Here, we have Write a program to find factorial of a given number in java with example to make the coding easier. Join our trending community to make us more stronger Source Code: – /*Scanner is a...

Camel and Banana Puzzle

Original Statement ” A person has 3000 bananas and a camel. The person wants to transport maximum number of bananas to a destination which is 1000 miles away, using only the camel as a mode of transportation. The camel cannot carry more than 1000 bananas at a time and...

Built in String Functions

Python treats strings as an object.It offers various methods that can be used to get our work done in no(or less) time.There are several built-in functions available that allows us to modify and (or) manipulate data easily and efficiently. Python offers a function dir which lists all the available...

Operation on Strings(Part-2)

3.Replicating String Replication means to make a copy.It is used to repeat a string or to make a new string by repeating the multiple copies of same String. #This is an Example of String Repetition s='Hello ' print(s*3) y='2' #Note that here y is of class string. print(y*2) Output:-...