• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 2 pages
Exam (elaborations)

Dsa Flashcards Exam Updated Actual Questions And Correct Answers

Document preview thumbnail
Preview 1 out of 2 pages

DSA Flashcards Exam UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS What are the 4 simple rules to determine Big O of a function? - CORRECT ANSWER the worst casebr2 - Remove the constantsbr3 - Use different terms for multiple inputs (arguments of the function)br4 - Drop non dominants (keep only the worst case) List the common Big O complexities from worst to bestbr(there are 7) - CORRECT ANSWER 1 - Find O(n!)brO(2^n)brO(n^2)brO(n log n)brO(n)brO(log n)brO(1) What are the 3 pillars of programming? - CORRECT ANSWER (Space)brSpeed (Time) ReadabilitybrMemory What are 4 things that can affect space complexity? - CORRECT ANSWER StructuresbrFunction CallsbrAllocations VariablesbrData Space complexity is not concerned with the size of the input per se but the... - CORRECT ANSWER ...memory that is being allocated for each operation. What are the 2 pillars of Data Structures? - CORRECT ANSWER to use one How to build onebrHow What are the 6 operations you can do within a data structure? - CORRECT ANSWER InsertionbrDeletionbrTraversalbrSearchingbrSortingbrAccessing What is an algorithm? - CORRECT ANSWER Technically all functions are algorithms. Steps to complete a desired action in computers. Big O Complexity Chart: Flip Card - CORRECT ANSWER

Content preview

DSA Flashcards Exam UPDATED
ACTUAL QUESTIONS AND CORRECT
ANSWERS
What are the 4 simple rules to determine Big O of a function? - CORRECT ANSWER 1 - Find
the worst case<br>2 - Remove the constants<br>3 - Use different terms for multiple inputs
(arguments of the function)<br>4 - Drop non dominants (keep only the worst case)



List the common Big O complexities from worst to best<br>(there are 7) - CORRECT
ANSWER O(n!)<br>O(2^n)<br>O(n^2)<br>O(n log n)<br>O(n)<br>O(log n)<br>O(1)



What are the 3 pillars of programming? - CORRECT ANSWER Readability<br>Memory
(Space)<br>Speed (Time)



What are 4 things that can affect space complexity? - CORRECT ANSWER Variables<br>Data
Structures<br>Function Calls<br>Allocations



Space complexity is not concerned with the size of the input per se but the... - CORRECT
ANSWER ...memory that is being allocated for each operation.



What are the 2 pillars of Data Structures? - CORRECT ANSWER How to build one<br>How
to use one



What are the 6 operations you can do within a data structure? - CORRECT
ANSWER Insertion<br>Deletion<br>Traversal<br>Searching<br>Sorting<br>Accessing



What is an algorithm? - CORRECT ANSWER Steps to complete a desired action in computers.
Technically all functions are algorithms.



Big O Complexity Chart: Flip Card - CORRECT ANSWER



What is factorial time complexity? Would you recommend using it using this scale
[Excellent,Good,Fair,Bad,Horrible]? - CORRECT ANSWER O(n!) - Horrible

Document information

Uploaded on
May 15, 2026
Number of pages
2
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
70
Followers
2
Items
10485
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions