Showing 3 of 8 questions
Given a street of a certain length divided into plots on both sides, calculate the total number of ways to place houses such that no two houses are directly adjacent to each other on the same side. Since the result can be very large, return it modulo 10^9 + 7.
#1. Count Number of Ways to Place Houses
Given an array of integers, find the smallest pair of numbers that appear with different frequencies in the array. Return the pair in increasing order.
#2. Smallest Pair With Different Frequencies
Determine if a given linked list contains a cycle. If a cycle exists, return true; otherwise, return false.
#3. Linked List Cycle
Page 1 of 1 · 8 total