Red-Green-Code

Deliberate practice techniques for software developers

  • Home
  • About
  • Contact
  • Project 462
  • CP FAQ
  • Newsletter

LeetCode 1818: Minimum Absolute Sum Difference

By Duncan Smith Leave a Comment Apr 28 0

A detailed solution for LeetCode 1818: Minimum Absolute Sum Difference. I’m posting some LeetCode model solutions this year. For more about this, see A Project for 2021.

Continue

Quora: How to Read Cracking the Coding Interview

By Duncan Smith Leave a Comment Apr 21 0

Books, especially technical ones, aren’t all organized the same way, so it’s good to have a plan for reading them: Should I first try to solve the problems from Cracking the Coding interview or read the book? (answer) I’m writing some answers on Quora this year. For more information, see A Project for 2021.

Continue

Quora: What to Do When You’re Stuck on a Competitive Programming Problem

By Duncan Smith Leave a Comment Apr 14 0

Some advice about what to do when you’re stuck on a coding puzzle: What should I do when I’m at the point where I can’t solve a competitive programming question? (answer) I’m writing some answers on Quora this year. For more information, see A Project for 2021.

Continue

Quora: How to Get Better at Competitive Programming

By Duncan Smith Leave a Comment Apr 7 0

Versions of this question pop up regularly on Quora. Here are my current thoughts on the topic: What is an absolute best way to become better at competitive programming? I know practice is the most important thing, but what kind of schedule would I need for this (problems a day, difficulty of problems, etc.), and […]

Continue

Quora: Is LeetCode Useful for Beginning Competitive Programmers?

By Duncan Smith Leave a Comment Mar 31 0

If you’re interested in competitive programming, does it make sense to start with LeetCode, or should you use a traditional competitive programming platform like Codeforces or Topcoder? Is LeetCode good as a starting point for competitive programming? (answer) I’m writing some answers on Quora this year. For more information, see A Project for 2021.

Continue

How to LeetCode

By Duncan Smith Leave a Comment Mar 24 0

LeetCode has been running a writing contest during February and March of this year. Here’s what I submitted: How to LeetCode: What I Learned from a Year of LeetCoding Challenge Problems.

Continue

LeetCode 322: Coin Change

By Duncan Smith Leave a Comment Mar 17 0

Problem LeetCode 322: Coin Change (Medium) Problem Statement: You are given a set of coin denominations (integers) and an amount of change to make using only these coins. Return an integer representing the smallest number of coins sufficient to make the given amount of change. You may use as many coins of each denomination as […]

Continue

LeetCode 152: Maximum Product Subarray

By Duncan Smith Leave a Comment Mar 10 0

Problem LeetCode 152: Maximum Product Subarray (Medium) Problem Statement: Given an array of integers, return the largest possible product of a contiguous subarray. Some notes: A contiguous subarray is a range of values [i..j], where i and j are positions in the input array. For this problem, the subarray must contain at least one value […]

Continue

LeetCode 856: Score of Parentheses

By Duncan Smith Leave a Comment Mar 3 0

Problem LeetCode 856: Score of Parentheses (Medium) Problem Statement: You are given a string containing only the characters ( and ). The parentheses are guaranteed to be balanced (as in syntactically valid source code). Calculate a score using the following rules: () has a score of 1. AB has a score of A + B, […]

Continue

LeetCode 11: Container With Most Water

By Duncan Smith Leave a Comment Feb 24 0

Problem LeetCode 11: Container With Most Water (Medium) Problem Statement: In the coordinate plane, consider $n$ vertical lines starting at points $(1, 0), (2, 0), …, (n, 0)$ and ending at points $(1, h_1), (2, h_2), …, (n, h_n)$, where each $h_i$ is a non-negative integer. We can construct a rectangle whose sides are the […]

Continue
  • « Previous Page
  • 1
  • …
  • 15
  • 16
  • 17
  • 18
  • 19
  • …
  • 49
  • Next Page »

Getting Started

Are you new here? Check out my review posts for a tour of the archives:

  • 2023 in Review: 50 LeetCode Tips
  • 2022 in Review: Content Bots
  • 2021 in Review: Thoughts on Solving Programming Puzzles
  • Lessons from the 2020 LeetCode Monthly Challenges
  • 2019 in Review
  • Competitive Programming Frequently Asked Questions: 2018 In Review
  • What I Learned Working On Time Tortoise in 2017
  • 2016 in Review
  • 2015 in Review
  • 2015 Summer Review

Archives

Recent Posts

  • Do Coding Bots Mean the End of Coding Interviews? December 31, 2024
  • Another Project for 2024 May 8, 2024
  • Dynamic Programming Wrap-Up May 1, 2024
  • LeetCode 91: Decode Ways April 24, 2024
  • LeetCode 70: Climbing Stairs April 17, 2024
  • LeetCode 221: Maximal Square April 10, 2024
  • Using Dynamic Programming for Maximum Product Subarray April 3, 2024
  • LeetCode 62: Unique Paths March 27, 2024
  • LeetCode 416: Partition Equal Subset Sum March 20, 2024
  • LeetCode 1143: Longest Common Subsequence March 13, 2024
Red-Green-Code
  • Home
  • About
  • Contact
  • Project 462
  • CP FAQ
  • Newsletter
Copyright © 2025 Duncan Smith