Real Type Finder

Easy
2 views 24 Jan 2026
Given one value as a string input, print its real JavaScript type in a friendly way: null, array, object, number, string, boolean, undefined, function....

Normalize to Number or NaN

Medium
4 views 24 Jan 2026
Input is a JSON array with mixed values. Convert each item to a number using Number(). Print a JSON array where invalid conversions become null....

Truthy Tally

Easy
2 views 24 Jan 2026
You get a JSON array. Count how many values are truthy in JavaScript (like 1, "hi", [], {} are truthy; 0, "", null, false are falsy). Print the count....

Nullish Fallback

Easy
4 views 24 Jan 2026
Two JSON values are given on two lines: a and b. Print the value of (a ?? b) as JSON (stringified). Remember: only null and undefined trigger the fallback, not 0 or empty string....

Number-ish Check

Easy
2 views 24 Jan 2026
One string is given. If JavaScript Number(s) becomes a valid number (not NaN), print YES else print NO....

Minus Zero Detector

Easy
6 views 24 Jan 2026
One number is given as string (can be -0). Print YES if it is exactly -0 in JavaScript, else NO....

Finite or Not

Easy
4 views 24 Jan 2026
One number string is given. Print YES if it is a finite number in JavaScript (not NaN, not Infinity), else NO....

Basic Type Buckets

Easy
2 views 24 Jan 2026
You get a JSON array with mixed values. Count how many are: number, string, boolean, null, array, object. Print 6 counts in this order....

Loose vs Strict

Easy
4 views 24 Jan 2026
Two JSON values are given on two lines: a and b. Print two words: the result of (a == b) and (a === b) as YES/NO....

ToString Difference

Easy
2 views 24 Jan 2026
One JSON value is given. Print two values: String(v) and JSON.stringify(v). If JSON.stringify gives undefined, print the word UNDEFINED there....

Same Type or Not

Easy
5 views 24 Jan 2026
Two JSON values are given on two lines. Print YES if both values have the same JavaScript type (treat null as its own type and array as its own type). Else print NO....

Deep Type Summary

Medium
2 views 24 Jan 2026
You get one JSON value (can be nested). Traverse all nested values and count how many times each type appears: number, string, boolean, null, array, object. Print counts as JSON object....

Stable JSON Print

Medium
5 views 24 Jan 2026
Given a JSON object, print the same object but with keys sorted alphabetically at every level (recursive). Output should be JSON string....

Safe Add (Number or BigInt)

Medium
4 views 24 Jan 2026
Two integers are given as strings. If both fit safely in JavaScript Number and the sum is also safe, print the sum as Number. Otherwise print the sum using BigInt....

Coerce and Sum (Ignore NaN)

Medium
4 views 24 Jan 2026
You get a JSON array. Convert every item with Number(x). Ignore items that become NaN. Sum remaining values and print the sum....

Object.is Checker

Medium
3 views 24 Jan 2026
You get q queries. Each query has two number strings a and b. For each, print SAME if Object.is(a,b) is true, else DIFF. Handles NaN and -0 properly....

Normalize Mixed to Strings

Medium
3 views 24 Jan 2026
You get a JSON array. Convert each item to a display string: primitives use String(x), null becomes 'null', objects/arrays become JSON string. Print JSON array of these strings....

Strict Integer Token

Medium
2 views 24 Jan 2026
One line has space-separated tokens. For each token, print YES if it is a valid base-10 integer format: optional leading '-' and digits, and no leading zeros unless the number is exactly 0. Else print...

Clamp With NaN

Medium
3 views 24 Jan 2026
Given three number strings x min max. If x is NaN print NaN. Else clamp x into [min,max] and print the result....

Big Integer Compare

Medium
2 views 24 Jan 2026
Two big integers are given as strings (may be negative). Print -1 if A < B, 0 if equal, 1 if A > B....

Bytes to Human

Medium
4 views 24 Jan 2026
Bytes amount is given. Print size in B, KB, MB, or GB with 2 decimals (base 1024). Example: 1536 -> 1.50 KB....

Array-Like to Array

Medium
2 views 24 Jan 2026
You get a JSON object having numeric keys and a length. Build a real array of that length. If a key is missing, keep null there. Print the array as JSON....

Plain Object Flags

Medium
4 views 24 Jan 2026
You get a JSON array. For each item print PLAIN if it is a plain object (typeof object, not null, not array). Else print NO. One output per line....

Filter by Type

Medium
3 views 24 Jan 2026
You get a JSON array and a type name. Keep only items matching that type (number,string,boolean,null,array,object) and print the resulting JSON array....

Sort Mixed (Numeric First)

Medium
3 views 24 Jan 2026
You get n tokens (strings). If a token is a valid finite number, treat it as numeric. Sort numeric tokens by numeric value. Non-numeric tokens come later sorted lexicographically. Print the final list...

Deep Equal (JSON)

Hard
3 views 24 Jan 2026
Two JSON values are given on two lines. Check deep equality: primitives compare normally (NaN does not appear in JSON), arrays compare by order, objects compare by keys and values ignoring key order. ...

Deep Merge Two Objects

Hard
4 views 24 Jan 2026
Two JSON objects are given on two lines. Merge them deeply: if both values are objects -> merge, if both are arrays -> concatenate, otherwise second value overrides. Print merged object as JSON....

Validate Value by Schema

Hard
3 views 24 Jan 2026
Two JSON values are given on two lines: schema and value. Schema has field type (number|string|boolean|null|array|object). For array, schema can have items. For object, schema can have props and requi...

Get JSON Value by Path

Hard
3 views 24 Jan 2026
You get a JSON object, then a path string like a.b[0].c. Print the value at that path as JSON. If path does not exist, print null....

Set JSON Value by Path

Hard
4 views 24 Jan 2026
You get a JSON object, a path like a.b[0].c, and a JSON value. Set that path in the object (create objects/arrays when needed). Print updated object as JSON....

Top-Level JSON Array Split

Hard
4 views 24 Jan 2026
One line has a JSON array as plain text (do NOT parse). Count how many top-level elements are present, ignoring commas inside strings/brackets. Print the count....

Canonical JSON Hash

Hard
4 views 24 Jan 2026
Given a JSON object, create canonical JSON by sorting keys recursively, then compute 32-bit FNV-1a hash of that canonical string. Print hash as unsigned integer....

Parse Query String (Typed)

Hard
3 views 24 Jan 2026
You get a query string like key=value&key=value. Decode %xx and + as space. Convert values: 'true'/'false' -> boolean, numbers -> number, else string. Repeated keys become arrays. Print JSON object....

Minify JSON Text

Hard
3 views 24 Jan 2026
Input is a JSON value as text (may contain spaces and new lines). Without parsing it, remove all whitespace that is outside string literals. Print the minified JSON text....

JS Identifier Check (ASCII)

Hard
4 views 24 Jan 2026
One string is given. Print YES if it is a valid JavaScript identifier using only ASCII rules: first char is letter/_/$, next chars are letters/digits/_/$. Otherwise NO....