1. First Non-Repeating Character in a Character Streamhistorical

    Implement a function that finds the first character that appears only once in a character stream. For example, after reading only the first two characters "go", the first character that appears once is "g".

  2. Subarray Sum Equals Khistorical

    Given an integer array and an integer k, find the number of contiguous subarrays whose sum equals k.

  3. Left Rotate Stringhistorical

    Assembly language has a shift instruction called rotate left (ROL). This task uses a string to simulate its result. Given a character sequence S, output the sequence after cyclically rotating it K positions to the left.

  4. Maximal Squarehistorical

    In a 2D matrix consisting of '0' and '1', find the largest square containing only '1' and return its area.

  5. Poker Straighthistorical

    Determine whether five playing cards can form a straight, allowing jokers to represent any number.

  6. Daily Temperatureshistorical

    Given a list of daily temperatures, generate a new list where each position contains the minimum number of days you must wait to observe a warmer temperature.

  7. Replace Spaceshistorical

    Implement a function that replaces every space in a string with "%20". For example, when the string is We Are Happy., the result after replacement is We%20Are%20Happy.

  8. Daily Temperatureshistorical

    Given a list of daily temperatures, generate a new list where each position contains the minimum number of days you must wait to observe a warmer temperature.

  9. Print Linked List from Tail to Headhistorical

    Given a linked list, return an ArrayList containing its values from tail to head.

  10. Sliding Window Maximumhistorical

    Slide a window of length k across an array from left to right and return the maximum value in each window.