Tags

Circular Array

Circular Array

0 lessons
2 problems

circular-array

Practice Problems

2 problems

Gas Station

Free
Not Started
Medium

Given arrays of gas available and cost to travel to the next station arranged in a circle, find the starting station index that lets you complete the circuit, or return -1 if impossible.

Greedy
Arrays
Circular Array
Algorithms
Intermediate

1.2k

33

House Robber II

Not Started
Medium

Houses are arranged in a circle. Adjacent houses cannot be robbed on the same night, and the first and last houses are also adjacent. Determine the maximum amount of money you can rob.

Arrays
Dynamic Programming
Circular Array
Algorithms
Intermediate

260

4