GoCalf Calf 的自留地 · 昙花一现

<Code author="Calf" />

  • 5. Longest Palindromic Substring

    #Problem Given a string s, return the longest palindromic substring in s. A string is palindromic if it reads the same forward and backward. A substring is a contiguous non-empty sequence of characters within a string. …

    medium
  • 540. Single Element in a Sorted Array

    #Problem You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. Return the single element that appears only once. Your solution must run in …

    medium
  • 3. Longest Substring Without Repeating Characters

    #Problem Given a string s, find the length of the longest substring without repeating characters. A substring is a contiguous non-empty sequence of characters within a string. …

    medium
  • 3242. Design Neighbor Sum Service

    #Problem You are given a n x n 2D array grid containing distinct elements in the range [0, n² - 1]. Implement the NeighborSum class: NeighborSum(int [][]grid) initializes the object. int adjacentSum(int value) returns the sum of elements …

    easy
  • 1. Two Sum

    #Problem Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. …

    easy
  • 128. Longest Consecutive Sequence

    #Problem Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that runs in O(n) time. https://leetcode.com/problems/longest-consecutive-sequence/ Example 1: …

    medium
  • 3235. Check if the Rectangle Corner Is Reachable

    #Problem You are given two positive integers xCorner and yCorner, and a 2D array circles, where circles[i] = [xᵢ, yᵢ, rᵢ] denotes a circle with center at (xᵢ, yᵢ) and radius rᵢ. There is a rectangle in the coordinate plane with its bottom …

    hard difficult