
Data Structures & Algorithms Quiz
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
Niveditha Kani
Used 1+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Given an array sorted in non-decreasing order, what’s the best time to check if a number exists?
O(n)
O(log n)
O(n log n)
O(1)
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
To remove duplicates from a sorted array in-place, which two-pointer approach is used?
Fast slower pointers
Merge sort
Hashing
Backtracking
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Time complexity to reverse a string of length n?
O(1)
O(log n)
O(n)
O(n²)
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
For checking if one string is an anagram of another (both length n), best approach?
Bubble sort + compare (O(n²))
Hash map count (O(n))
Binary search
Merge sort + compare
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What’s the time to find the longest prefix common to n strings (each of avg length m)?
O(n + m)
O(n × m)
O(log(nm))
O(n m log m)
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Removing the n-th node from the end can be done in:
O(n²)
O(n log n)
O(n) using two pointers
O(log n)
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
To detect a cycle in a linked list, which algorithm is used?
Hashmap
Sorting
Floyd’s cycle-finding
Backtracking
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
SELEKSI TES TULIS PILDUGEN KLUNGKUNG 2023
Quiz
•
Professional Development
25 questions
EFFICIENT CALENDAR MANAGEMENT
Quiz
•
Professional Development
25 questions
sejarah peminatan KELAS xi
Quiz
•
Professional Development
25 questions
Farmàcia UF2 Farmacologia
Quiz
•
Professional Development
25 questions
Cuestionario segundo parcial macroeconomia
Quiz
•
Professional Development
25 questions
RSCLQIV_ĐỀ THI LÝ THUYẾT
Quiz
•
Professional Development
25 questions
OCTAVO QUIZZIZ
Quiz
•
Professional Development
25 questions
CSMS & KOFOE (25Q - 750s) - AST MAN
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
