DSA Reviewer
DSA Reviewer
Time complexity:
Space complexity:
Analysis of algorithms
Issues:
• Arrays
• Maps
• Linked Lists
// - Comment • Stack
• Queues
# - preprocessor commands, which usually change what • Trees
code is actually being compiled. • Graphs
int main() {...} - defines the code that should execute Array - a group of consecutive memory locations with
when the program starts up. same name and data type.
cout << - This is the syntax for outputting some piece of Elements – memory locations
text to the screen.
Length – total number of elements
Namespaces - a context – sort of a directory of names
Index/Subscript – reference to its position in the array
Strings – a sequence of characters.
DECLARATION OF AN ARRAY:
\n – newline
Operator types:
Sorting Arrays:
• Ascending Order
• Descending Order