100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
BEST DSA NOTES 2023 $5.49   Add to cart

Class notes

BEST DSA NOTES 2023

 7 views  0 purchase
  • Course
  • Institution

DSA stands for Data Structures and Algorithms. It is a fundamental topic in computer science and software engineering that deals with the study of data organization, storage, and retrieval, as well as the design, analysis, and optimization of algorithms that operate on this data. Data structures...

[Show more]

Preview 4 out of 54  pages

  • March 17, 2023
  • 54
  • 2022/2023
  • Class notes
  • Jayant
  • All classes
avatar-seller
C++ Basics in One Shot

This is one of the most followed resources in the country
as of now what this resource gives you it gives you 119
well curated problems such that all your DS algo Concepts
will be covered. You should definitely check out coding
ninjas because web development okay data Stitch
algorithm foreign Country there's a link in the description
make sure you check them out I 'll be using vs code in
order to code I'll be writing my C plus plus code over here
and whatever the code generates as an output will be
produced over here. In the next video we will be covering
Java 1. C plus plus we can use the hash include so hash
include i o stream imagine if you want to use something
like a math dot hIll be talking about radical functions
afterwards. C out is a function which exists under the STD
and double colon so in order to use C out you have to write
STD.




Program always uses STD for all the functions. For most
of the functions you have to write STD double colon

,double Corner. If you compile it and print everything now it
looks like an easier task, isn't it? This is how you can easily
write okay now let 's quickly have an input imagine you
want to take an input. It's going to take you a lot of time.
This is where C plus plus C is a I 've got something better
for you I say can I write bits STD C plus Plus C plusplus C.
It includes all the libraries, everything whatever libraries
are there in C plus. plus plus. everything is included under
this bits slash stdc plusplus plus dot h. We will be
specifically using two data types float and double again
they have ranges depending on the Range that you use
you 'll be using float or double the ranges are visible on the
screen. If you want to store bigger numbers than this this
is where something like long long will come in so if you are
saying long long it will give you a wider range.




If we use something like get line inside the get line you
have to write CN what is get line again do not need to dig
deep it's an internal function. The moment you click enter
the next line will not be picked up so it just picks up till the

,line break so string and get line is used to take any of the
string. Character can store all of the 256 characters in
English dictionary. If we have something like a 10 and that
10 can be stored in all the three or all the five why ca n't we
use simply long long or maybe double? Everything takes
up a certain space in your computer so depending on that
we decide what to use now integer has a range now those
numbers you can't uh remember so what I usually do is I
keep a rounding of number like I know integer will be from
minus 10 to the power 9 to 10 to power 9. If you are
greater than equal to 18 then I can say you are an adult
you're an adult yes or if you are lesser than 18 E1 not an
adult. If you omit the else statement what will happen is
the 15 will be taken as the input and the if will not be
executed and will not find an else.




The problem is very simple. The school has following rules
for grading systems below 25 grade f 25 to 44 grade e 45
to 40 49 ready and so on so your task is to ask users to
enter marks and print the corresponding grade okay so
what is the first reading to get the marks. Backslash
asterisk is how you can do it in a single line. If 24 is true

, over here none of these lines will be executed because it
states else it will never go there and it will not be executed
so you 'll be saving a lot of time previously in every F was
executed so this is why else if will be written now another
thing you 're having 24. marks is going and checking this
set imagine the marks are something like 86. If the age is
smaller than 18 you can print this and all the conditions
are given to you so something we know uh for sure is we
need age right so we can take the scene of H now we
know something if H is uh smaller than H then we got ta
print something like not eligible per job. If it is greater than
equal to 18 you will be eligible for a job. But if it is between
55 and 57 eligible for the job but retirement soon that is
what you have to print got it right.




Time and Space Complexity

Eventually when you complete all the steps or all the
problems you will have a very very good hold on time
complexity. Time complexity can not be said as time taken
because it is dependent on the system it is different

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller iconicgaming. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $5.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67163 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$5.49
  • (0)
  Add to cart