Red-Green-Code

Deliberate practice techniques for software developers

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

Quora: Optimizing Competitive Programming Solutions

By Duncan Smith Leave a Comment Jan 8 0

Long ago, I wrote an article about Profiling Java Programs with VisualVM. It can be interesting to analyze code to find performance bottlenecks. But for competitive programming solutions, it’s usually a losing battle. If you choose the wrong algorithm, no amount of micro-optimization will help. What are ways to optimize programs? My algorithms are strong […]

Continue

A Project for 2020

By Duncan Smith Leave a Comment Jan 1 0

People often use the term competitive programming to refer to any activity (besides homework) where programmers create solutions to made-up puzzles rather than real-world problems. For example, consider this Quora question: Which is the best online judge for competitive programming, HackerRank, HackerEarth or LeetCode? As Bohdan Pryshchenko points out in his answer, these three sites […]

Continue

Red-Green-Code: 2019 in Review

By Duncan Smith Leave a Comment Dec 25 0

As 2019 comes to a close, I’m continuing my tradition of reviewing posts from the past year. This year was divided into two halves. In the first half, I covered topics in discrete math, math for competitive programming, and math learning in general. In the second half, I changed my blog content approach. More on […]

Continue

Quora Experiment 2019: Week 25

By Duncan Smith Leave a Comment Dec 18 0

People debate how useful competitive programming practice is for getting better at real-world programming. But there’s one area where it definitely helps: Why are people obsessed with competitive programming when it’s not used in real-world programming jobs? (answer) Why is this post so short? Find the answer, and links to a blog table of contents, […]

Continue

Quora Experiment 2019: Week 24

By Duncan Smith Leave a Comment Dec 11 0

To get better at solving coding interview problems, you have to solve a lot of coding interview problems. So a reasonable question to ask (though it’s hard to answer accurately) is: How many LeetCode problems should I do? (answer) Why is this post so short? Find the answer, and links to a blog table of […]

Continue

Quora Experiment 2019: Week 23

By Duncan Smith Leave a Comment Dec 4 0

This question seems basic, but it’s a core issue in math and programming practice: What does one do when they read a problem statement, think a bit and figure they don’t know how to solve it? (answer) Why is this post so short? Find the answer, and links to a blog table of contents, at […]

Continue

Quora Experiment 2019: Week 22

By Duncan Smith Leave a Comment Nov 27 0

In many Quora questions, people ask what’s required to start competitive programming. It’s not always clear what they’re looking for with these questions, since you don’t need to apply to be a competitive programmer. Online judges are free. Just register and try one out. Here’s a question where the writer is a bit more specific […]

Continue

Quora Experiment 2019: Week 21

By Duncan Smith Leave a Comment Nov 20 0

Some companies use a combination of automated and manual screening when deciding which candidates to invite for in-person interviews. A Quora user had a question about that: Do companies that test their applicants using HackerRank actually look at the code or just whether they passed the test cases or not? (answer) And here’s another question […]

Continue

Quora Experiment 2019: Week 20

By Duncan Smith Leave a Comment Nov 13 0

If you practice math or programming problems from a source that provides solutions, you have to decide when to peek at the solution. That might lead you to ask a question like this: Is it still effective learning if I try medium and hard coding challenges and give up after 30 minutes and just review […]

Continue

Quora Experiment 2019: Week 19

By Duncan Smith Leave a Comment Nov 6 0

There are a lot of competitive programming problems out there. How do you decide which ones to practice? For example: What is the best strategy to tackle LeetCode problems, sort by the highest acceptance rates or problems related to one concept together? (answer) Why is this post so short? Find the answer, and links to […]

Continue
  • « Previous Page
  • 1
  • …
  • 22
  • 23
  • 24
  • 25
  • 26
  • …
  • 50
  • 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

  • Will AI Coding Assistants “Deskill” Us? January 30, 2026
  • Stateless by Design: How to Work With AI Coding Assistants December 31, 2025
  • 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
Red-Green-Code
  • Home
  • About
  • Contact
  • Project 462
  • CP FAQ
  • Newsletter
Copyright © 2026 Duncan Smith