GoCalf Calf 的自留地 · 昙花一现

全站内容

easy

  • 141. Linked List Cycle

    Coding

    #Problem Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. …

    easy
  • 3258. Count Substrings That Satisfy K-Constraint I

    Coding

    #Problem You are given a binary string s and an integer k. A binary string satisfies the k-constraint if either of the following conditions holds: The number of 0’s in the string is at most k. The number of 1’s in the string is at most k. …

    easy
  • 3242. Design Neighbor Sum Service

    Coding

    #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

    Coding

    #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