摘要:
难度 中等 题目 Leetcode: Find Eventual Safe States We start at some node in a directed graph, and every turn, we walk along a directed edge of the graph. If 阅读全文
摘要:
难度 中等 题目 Leetcode: Shortest Unsorted Continuous Subarray Given an integer array nums, you need to find one continuous subarray that if you only sort t 阅读全文
摘要:
难度 中等 题目 Leetcode: You are given a network of n nodes, labeled from 1 to n. You are also given times, a list of travel times as directed edges times[i 阅读全文
摘要:
难度 1300 题目 Codeforces: B. T-primes time limit per test 2 seconds memory limit per test 256 megabytes We know that prime numbers are positive integers 阅读全文
摘要:
难度 1500 题目 Codeforces: B. Kefa and Company time limit per test 2 seconds memory limit per test 256 megabytes Kefa wants to celebrate his first big sal 阅读全文
摘要:
难度 1500 题目 Codeforces: C. Kefa and Park time limit per test 2 seconds memory limit per test 256 megabytes Kefa decided to celebrate his first big sala 阅读全文
摘要:
难度 困难 题目 Leetcode: 773. Sliding Puzzle On an 2 x 3 board, there are five tiles labeled from 1 to 5, and an empty square represented by 0. A move consi 阅读全文
摘要:
难度 1500 题目 Codeforces: A. Two Substrings time limit per test 2 seconds memory limit per test 256 megabytes You are given string s. Your task is to det 阅读全文
摘要:
难度 1500 题目 Codeforces: C. Divisibility by Eight time limit per test 2 seconds memory limit per test 256 megabytes You are given a non-negative integer 阅读全文
摘要:
难度 1700 题目 Codeforces: C. Number of Ways time limit per test 2 seconds memory limit per test 256 megabytes You've got array a[1], a[2], ..., a[n], con 阅读全文