Exercises
Multiple Choice
Articles
Open Problems
Login
3 items
Topic:
Data Structures
x
Start over
- to expand, or dig in by adding more tags and revising the query.
Sort By:
trending ▼
date
0
Undergraduate
By
Shiva Kintali
on May 19, 2013 | Updated Dec. 6, 2017
Counting intersections of chords
Consider \(n\) chords on a circle, each defined by its endpoints. Describe an \(O(n{\log}n)\)-time algorithm to determine the number of pairs of chords that intersect inside the circle. For example, i…
Computer Science
Algorithms
Data Structures
counting
sorting
0
Undergraduate
By
Shiva Kintali
on May 19, 2013 | Updated Dec. 6, 2017
Reverse a linked list
Design a \(\Theta(n)\)-time nonrecursive algorithm that reverses a singly linked list of \(n\) elements. The algorithm should use no more than constant space beyond that needed for the list itself.
Computer Science
Algorithms
Data Structures
linear time algorithms
linked list
0
Undergraduate
By
Shiva Kintali
on May 19, 2013 | Updated Dec. 6, 2017
Randomly built binary search tree
Define a randomly built binary search tree on \(n\) keys as one that arises from inserting the keys in random order into an initially empty tree, where each of the \(n!\) permutations of the input key…
Computer Science
Mathematics
Algorithms
Data Structures
Probability
binary tree
expectation
icon
Sign In or Sign Up
icon
Invite Friends
Post Something
x
Select What You'd Like To Post
POST AN ARTICLE
POST AN OPEN PROBLEM
POST AN EXERCISE
POST A MULTIPLE-CHOICE QUESTION
Content Types
Articles
Open Problems
Exercises
Multiple-Choice Questions
Levels
High school
Undergraduate
Graduate
Subjects
Mathematics
Computer Science
Puzzles
Optimization
Trending tags
conditional probability
interview question
vertex cover
math puzzle
expectation
basics
counting
fibonacci
pigeonhole principle
primes
Topics
Algebra
Algorithms
Approximation Algorithms
Calculus
Combinatorial Optimization
Combinatorics
Complexity Theory
Data Structures
Discrete Mathematics
Game Theory
Geometry
Graph Theory
Linear Algebra
Linear Programming
Logic
Mathematical Analysis
Mathematics
Matrix Theory
Number Theory
Optimization
Probability
Programming
Puzzles
Randomized Algorithms
Real Analysis
Trigonometry
×