Giter Site home page Giter Site logo

two-special-problems-with-solutions's Introduction

Two-Special-Problems-With-Solutions

This respository includes two interesting tasks and my proposition thier solution in Python

The first one

INPUT: So first we must type some word or a string of characters. Than after a space(" ") we write other string of characters. Our program check that exactly the same characters given before the space appear in word given after the space.

EXAMPLES:

I _______________________________

Input: 'boy bcsoaay'

Output: '1' -> [mains "yes" or "true"]

II _______________________________

Input: 'boy bo23879fsdf98y'

Output: '1' -> [mains "yes" or "true"]

III _______________________________

Input: 'boy b123o'

Output: '0' -> [mains "no" or "false"]

IV _______________________________

Input: 'boy bbboooyyy'

Output: '1' -> [mains "yes" or "true"]

The second one

INPUT: So first we must write how many digits does our number have . Than after a space(" ") we write our number. In place of some digits we put '?' and our program will calculate how many ways we can write a given number.

EXAMPLES:

I _______________________________

Input: '1 ?'

Output: '10'

II _______________________________

Input: '2 ?5'

Output: '9'

III _______________________________

Input: '3 ?5?'

Output: '90'

IV _______________________________

Input: '5 1?3?5'

Output: '100'

two-special-problems-with-solutions's People

Contributors

p-create02 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.