Category: Array coding problemYou are given an integer array nums. Rearrange nums so that all even numbers appear before all odd numbers. The relative order of even or odd...Input: Array Output: Integer
codingMediumVerified Question#2
2. Cyclic Digit Primality
Category: Algorithm coding problemA number is called a cyclic prime if every rotation of its decimal digits produces a prime number. A rotation moves the leftmost digit to the...Input: Integer(s) Output: Computed result
codingMediumVerified Question#3
3. Tower Game Optimizer
Category: Array coding problemA tower has n floors numbered from 0 to n - 1. Each floor has an energy cost to traverse and a reward value. You start a ball at one chosen...Input: Array Output: Computed result
codingMediumVerified Question#4
4. Social Network Friend Suggester
Category: Array coding problemBuild a friend recommendation system for a social network. Given n users (indexed 0 to n - 1) and a list of existing friendships (undirected...Input: Array Output: Array
codingMediumVerified Question#5
5. Item Price Tracker
Category: Algorithm coding problemDesign a class that tracks the price history of a single product. Price records are keyed by timestamp and can be updated at any time. The tracker...Input: Given input Output: Computed result
codingMediumVerified Question#6
6. Top Values After Operations
Category: Array coding problemYou are given an array of non-negative integers nums and two integers k and m. Perform exactly k operations on nums. In each operation: 1....Input: Array Output: Computed result
No AI generated questions yet for Oracle.
Start practicing Oracle questions
Sign up for free to access walkthroughs, AI-generated questions, and more.