LeetCode problem #395: Longest substring with at least K repeating characters(JavaScript)

Solution #1: Brute force

Solution #2: Divide and conquer

--

--

--

Full-stack software developer from the UK, author of the Aftermath book series, full time tech-nerd.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Scan a Google Cloud Platform Storage File in JavaScript

PWA in brief! (Progressive Web App) part-1

test this medium post

Day 111 — Completing the Sword Arc Animation and Implementing Camera Follow

JavaScript — The “this” key word in depth

CS373: Sahil Jain v6.0

Frontend Weekly Digest #151 (23–29 March 2020)

JavaScript basics: Event Propagation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Duncan McArdle

Duncan McArdle

Full-stack software developer from the UK, author of the Aftermath book series, full time tech-nerd.

More from Medium

JavaScript Variable Scope and Declaration

AlphaCamp Leetcode 訓練營 03. Map & Set — 觀念入門

Principles for Coding and JavaScript objects

[Leetcode] Remove K Digits