To answer this question, I used an example from LeetCode: Can an introductory problem be solved using dynamic programming? (answer) I’m writing some answers on Quora this year. For more information, see A Project for 2021.
ContinueQuora: Why Doesn’t Project Euler Have Editorials?
In the world of competitive programming, an editorial is an article that explains the solution to a problem. Project Euler is different from competitive programming sites, and they also have a different philosophy about editorials: Why does Project Euler not have any editorials? (answer) I’m writing some answers on Quora this year. For more information, […]
ContinueLeetCode 1818: Minimum Absolute Sum Difference
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.
ContinueQuora: How to Read Cracking the Coding Interview
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.
ContinueQuora: What to Do When You’re Stuck on a Competitive Programming Problem
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.
ContinueQuora: How to Get Better at Competitive Programming
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 […]
ContinueQuora: Is LeetCode Useful for Beginning Competitive Programmers?
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.
ContinueHow to LeetCode
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.
ContinueLeetCode 322: Coin Change
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 […]
ContinueLeetCode 152: Maximum Product Subarray
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- « Previous Page
- 1
- …
- 15
- 16
- 17
- 18
- 19
- …
- 50
- Next Page »