Day 9 of 30 days Leetcode challenge
Backspace String Compare Given two strings S and T, return if they are equal when both are typed in ...
Backspace String Compare Given two strings S and T, return if they are equal when both are typed in ...
Middle of the Linked List Given a non-empty, singly linked list with head node head, return a middl ...
Counting Element Given an integer array arr, count element x such that x + 1 is also in arr. If th ...
Group Anagrams Given an array of strings, group anagrams together. Example: Input: ["eat&quo ...
Best Time to Buy and Sell Stock II Say you have an array for which the ith element is the price of ...
Move Zeros Given an array nums, write a function to move all 0's to the end of it while maintaining ...
Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one ...
Happy Number Write an algorithm to determine if a number is "happy". A happy number is a number def ...