• Non ci sono risultati.

3) write a function which takes in input two queues of integers and returns an ordered queue containing the values in the input queues (same for two stacks)

N/A
N/A
Protected

Academic year: 2021

Condividi "3) write a function which takes in input two queues of integers and returns an ordered queue containing the values in the input queues (same for two stacks)"

Copied!
1
0
0

Testo completo

(1)

Please

write the following programs: (in Python)

1) define a class for a queue

2) define a class for a stack

3) write a function which takes in input two queues of integers and returns an ordered queue containing the values in the input queues (same for two stacks)

4) define a function for computing the product of two matrices

5) define a function which given a binary search tree T of integers and a rectangular matrix M of integers verify if there exists a row of M whose values belong to T. (Do the same exercise for 'a column').

6) define a function which given a binary search tree T of integers and a rectangular matrix M

of integers verify if there exists an ordered row of M (e.g. values in ascending order) whose

values are in T.

Riferimenti

Documenti correlati

Then I suggest that the actors who could be advancing a value shift towards sustainability are the states and political parties, international organizations,

The project looked into how a value shift could be a response to climate change and global environmental crisis, what gaps in the existing system of values should be addressed

 Spark provides specific actions for RDD containing numerical values (integers or floats)..  RDDs of numbers can be created by using the

It is also described a use case of IBM Watson Analytics, a cloud system for data analytics, applied to the following research scope: detecting the presence or absence of Heart

The fact that Benjamin grasps the essential aspect of modern dwelling in that intérieur (as opposed to the working environment) which distinguishes the late

• L'analisi delle variabili sulla base della matrice dei dati viene usualmente effettuata sia in modo marginale (ovvero rispetto ad ogni singola variabile) che in modo

for setting the maximum height and/or width of an element, respectively initial value: none ; may not be applied to non-replaced inline elements or table elements; not