If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: leetcodejavascript.com/solutions/decode-string - #394 - Decode String - LeetCod.

site address: leetcodejavascript.com/solutions/decode-string

site title: #394 - Decode String - LeetCode JavaScript Solutions

Our opinion (on Wednesday 18 November 2026 22:54:17 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:
description=Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brac...;
keywords=leetcode, javascript, solutions, algorithms, data structures, coding, programming, coding challenges, coding problems, coding solutions;
author=;

Headings (most frequently used words):

394, decode, string, problem, description, solution,

Text of the page (most frequently used words):
#string (8), the (8), result (7), decoder (5), that (5), stack (4), are (4), return (3), const (3), for (3), number (3), else (3), leetcodejavascript (2), com (2), let (2), previous (2), count (2), repeat (2), will (2), there (2), not (2), input (2), you (2), may (2), assume (2), square (2), brackets (2), digits (2), encoded_string (2), view (2), github (2), leetcode (2), 394 (2), decode (2), solutions (2), 2025, josh, crozier, param, var, decodestring, function, isnan, push, pop, solution, test, cases, generated, length, output, never, exceed, 105, example, like, always, valid, extra, white, spaces, well, formed, etc, furthermore, original, data, does, contain, any, and, only, those, numbers, encoding, rule, where, inside, being, repeated, exactly, times, note, guaranteed, positive, integer, given, encoded, its, decoded, problem, description, recursion, medium, back, all, star, javascript,


Text of the page (random words):
394 decode string leetcode javascript solutions leetcodejavascript com star on github back to all solutions 394 decode string medium view on leetcode view on github string stack recursion problem description given an encoded string return its decoded string the encoding rule is k encoded_string where the encoded_string inside the square brackets is being repeated exactly k times note that k is guaranteed to be a positive integer you may assume that the input string is always valid there are no extra white spaces square brackets are well formed etc furthermore you may assume that the original data does not contain any digits and that digits are only for those repeat numbers k for example there will not be input like 3a or 2 4 the test cases are generated so that the length of the output will never exceed 105 solution param string s return string var decodestring function s const stack let result let decoder 0 for const c of s if isnan c number c 0 number c 9 decoder number c decoder 10 else if c stack push result decoder result decoder 0 else if c const previous count stack pop result previous result repeat count else result c return result 2025 leetcodejavascript com josh crozier
Images from subpage: "leetcodejavascript.com" Verify
Images from subpage: "leetcodejavascript.com/tags/string" Verify
Images from subpage: "leetcodejavascript.com/tags/stack" Verify
Images from subpage: "leetcodejavascript.com/tags/recursion" Verify

Verified site has: 4 subpage(s). Do you want to verify them? Verify pages:

1-4


The site also has 3 references to external domain(s).

 github.com  Verify  leetcode.com  Verify  joshcrozier.com  Verify


Top 50 hastags from of all verified websites.

Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

Header

HTTP/2 200
date Wed, 18 Nov 2026 22:54:17 GMT
content-type text/html; charset=utf-8
x-frame-options DENY
report-to group : cf-nel , max_age :604800, endpoints :[ url : htt????/a.nel.cloudflare.com/report/v4?s=oj7vwH0kIcGBL7DUdRIj6I5lJj13cxx84VL1bwSb%2Bh%2FzBN%2F6Ka6CVNQr7b5f7%2FLZsQFe%2Fwq9nOzPXiVWJHv5t3q7Xz%2Bkcudw1YreMbTC6mueEwsufnvuOqcvsijf%2BCrDhLuLPjHVNipF ]
nel report_to : cf-nel , success_fraction :0.0, max_age :604800
access-control-allow-origin htt????/leetcodejavascript.com
cache-control public, max-age=14400, must-revalidate
x-content-type-options nosniff
strict-transport-security max-age=31536000
permissions-policy geolocation=(), microphone=(), camera=(), payment=(), usb=(), accelerometer=(), gyroscope=(), magnetometer=()
referrer-policy no-referrer
vary accept-encoding
server cloudflare
last-modified Wed, 18 Nov 2026 22:54:17 GMT
cf-cache-status MISS
content-encoding gzip
cf-ray a5ca8e617ebd7cb6-CDG
alt-svc h3= :443 ; ma=86400

Meta Tags

title="#394 - Decode String - LeetCode JavaScript Solutions"
charset="UTF-8"
name="viewport" content="width=device-width, initial-scale=1.0"
name="description" content="Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brac..."
name="keywords" content="leetcode, javascript, solutions, algorithms, data structures, coding, programming, coding challenges, coding problems, coding solutions"
name="author" content="LeetCodeJavascript.com"
name="robots" content="index, follow"
property="og:type" content="article"
property="og:url" content="htt????/leetcodejavascript.com/solutions/decode-string"
property="og:title" content="#394 - Decode String - LeetCode JavaScript Solutions"
property="og:description" content="Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brac..."
property="og:image" content="htt????/leetcodejavascript.com/og-image.jpg"
property="og:site_name" content="LeetCode JavaScript Solutions"
name="twitter:card" content="summary_large_image"
name="twitter:url" content="htt????/leetcodejavascript.com/solutions/decode-string"
name="twitter:title" content="#394 - Decode String - LeetCode JavaScript Solutions"
name="twitter:description" content="Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brac..."
name="twitter:image" content="htt????/leetcodejavascript.com/og-image.jpg"
name="twitter:creator" content="@joshcrozier"
name="theme-color" content="#1f2937"

Load Info

page size2939
load time (s)0.119723
redirect count0
speed download24697
server IP 188.114.97.0
* all occurrences of the string "http://" have been changed to "htt???/"