Question
data structures Q 4- Write a simple code snippet to create a house class with information about house type, number of rooms and house number.
data structures
Q 4- Write a simple code snippet to create a house class with information about house type, number of rooms and house number. Also create method to display house info. Create an array of object of type house with size 5 and assign the data for all objects. No need to include import statements.
--------------------------------------------------------------------------------------------------------------
Q5-Explain what is Big Oh notation used for. Sort O(1), O(n), O(log n), O(n2) based on there performance from best to worst. Give example code snippet for each one of the O() values. No need for complete code just the structure is enough.
For the toolbar, |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started