Skip to content
Gerry's Blog

Gerry's Blog

Gerry的博客

Month: September 2020

Posted on September 28, 2020

LeetCode Find the Difference

Given two strings s and t which consist of only lowercase letters.

String t is generated by random shuffling string s and then add one more letter[……]

Read more

Posted on September 28, 2020

LeetCode Subarray Product Less Than K

our are given an array of positive integers nums.

Count and print the number of (contiguous) subarrays where the product of all the elements in the[……]

Read more

Posted on September 27, 2020

LeetCode Majority Element II

Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times.

Follow-up: Could you solve the problem in linear time and[……]

Read more

Posted on September 26, 2020

LeetCode Teemo Attacking Solution

In LOL world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo’s attacking ascend[……]

Read more

Posted on September 19, 2020

LeetCode Robot Bounded In Circle

On an infinite plane, a robot initially stands at (0, 0) and faces north. The robot can receive one of three instructions:

“G”: go straight 1 unit[……]

Read more

Posted on September 19, 2020

LeetCode Sequential Digits

An integer has sequential digits if and only if each digit in the number is one more than the previous digit.

Return a sorted list of all the integ[……]

Read more

Posted on September 16, 2020September 19, 2020

LeetCode Compare Version Numbers Solution

Given two version numbers, version1 and version2, compare them.

Version numbers consist of one or more revisions joined by a dot ‘.’. Each revision[……]

Read more

Posted on September 16, 2020September 16, 2020

LeetCode Sum of Root To Leaf Binary Numbers

You are given the root of a binary tree where each node has a value 0 or 1. Each root-to-leaf path represents a binary number starting with the most[……]

Read more

Recent Posts

  • LeetCode 1351. Count Negative Numbers in a Sorted Matrix
  • LeetCode 1464. Maximum Product of Two Elements in an Array
  • LeetCode 980. Unique Paths III
  • LeetCode 1450. Number of Students Doing Homework at a Given Time
  • LeetCode 1486. XOR Operation in an Array

Recent Comments

  • Marjory Pagett on LeetCode 41. First Missing Positive
  • Graig Besser on LeetCode 41. First Missing Positive
  • Anette Larue on LeetCode 1302. Deepest Leaves Sum
  • xxx xxx on LeetCode 901. Online Stock Span
  • Quincy Schild on LeetCode 41. First Missing Positive

Archives

  • October 2020
  • September 2020
  • May 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018

Categories

  • Google Code Jam
  • JAVA
  • LeetCode
  • MapReduce
  • MongoDB
  • Spark
  • SpringCloud
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Ads

Proudly powered by WordPress