Giter VIP home page Giter VIP logo

unscrumbe-computer-science-problems's Introduction

Unscrumbe Computer Science Problems

This project contains data structure algorithms with Big O Notation

Prequesties

No more than pure Python 3 environment

Task 1

How many different telephone numbers are there in the records?

Print a message: "There are different telephone numbers in the records."

Task 2

Which telephone number spent the longest time on the phone during the period? Don't forget that time spent answering a call is also time spent on the phone.

Print a message: " spent the longest time, seconds, on the phone during September 2016.".

Task 3

(080) is the area code for fixed line telephones in Bangalore. Fixed line numbers include parentheses, so Bangalore numbers have the form (080)xxxxxxx.)

Part A: Find all of the area codes and mobile prefixes called by people in Bangalore.

  • Fixed lines start with an area code enclosed in brackets. The area codes vary in length but always begin with 0.
  • Mobile numbers have no parentheses, but have a space in the middle of the number to help readability. The prefix of a mobile number is its first four digits, and they always start with 7, 8 or 9.
  • Telemarketers' numbers have no parentheses or space, but they start with the area code 140.

Print the answer as part of a message: "The numbers called by people in Bangalore have codes:" The list of codes should be print out one per line in lexicographic order with no duplicates.

Part B: What percentage of calls from fixed lines in Bangalore are made to fixed lines also in Bangalore? In other words, of all the calls made from a number starting with "(080)", what percentage of these calls were made to a number also starting with "(080)"?

Print the answer as a part of a message:: " percent of calls from fixed lines in Bangalore are calls to other fixed lines in Bangalore." The percentage should have 2 decimal digits

Task 4

The telephone company want to identify numbers that might be doing telephone marketing. Create a set of possible telemarketers: these are numbers that make outgoing calls but never send texts, receive texts or receive incoming calls.

Print a message: "These numbers could be telemarketers: " The list of numbers should be print out one per line in lexicographic order with no duplicates.

unscrumbe-computer-science-problems's People

Contributors

ryoussefali 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.