[LeetCode] Strictly Palindromic Number

2396. Strictly Palindromic Number

An integer n is strictly palindromic if, for every base b between 2 and n - 2 (inclusive), the string representation of the integer n in base b is palindromic.

Given an integer n, return true if n is strictly palindromic and false otherwise.

A string is palindromic if it reads the same forward and backward.

Read more
[LeetCode] Find Subarrays With Equal Sum

2395. Find Subarrays With Equal Sum

Given a 0-indexed integer array nums, determine whether there exist two subarrays of length 2 with equal sum. Note that the two subarrays must begin at different indices.

Return true if these subarrays exist, and false otherwise.

A subarray is a contiguous non-empty sequence of elements within an array.

Read more
[AtCoder] B - Gift TaxRead more
[Codeforces] Round #547 (Div. 3) D. Colored BootsRead more
[Codeforces] Forethought Future Cup - Final Round (Onsite Finalists Only) A. Hide and SeekRead more
[Codeforces] Round #552 (Div. 3) D. Walking RobotRead more
[Codeforces] Round #559 (Div. 1) A. The Party and SweetsRead more
[Codeforces] Round #558 (Div. 2) B2. Cat Party (Hard Edition)Read more
[Codeforces] Round #558 (Div. 2) B1. Cat Party (Easy Edition)Read more
[AtCoder] A - Make it ZigzagRead more