1891. Cutting Ribbons

Description

You are given an integer array ribbons, where ribbons[i] represents the length of the i^th ribbon, and an integer k. You may cut any of the ribbons into any number of segments of positive integer lengths, or perform no cuts at all.

Read more »

490. The Maze

Description

There is a ball in a maze with empty spaces (represented as 0) and walls (represented as 1). The ball can go through the empty spaces by rolling up, down, left or right , but it won’t stop rolling until hitting a wall. When the ball stops, it could choose the next direction.

Read more »
0%