docs(leetcode): add solution and documentation for 1365. How Many Numbers Are Smaller Than the Current Number

This commit is contained in:
Prad Nukala committed 2026-07-12 15:56:38 -04:00
1 parent 1f48808548
commit fa3ab1031d
3 files changed
+144

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
---
title: LC-1365
description: How Many Numbers Are Smaller Than the Current Number
---
## OverviewProblem solving guide for Technical Interviews
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i].
### Examples
| Control | Purpose | Default |
| ------------------ | --------------------- | -------- |
| `--typeset-size` | Base text size | `1em` |
| `--typeset-leading`| Line height | `1.75` |
| `--typeset-flow` | Space between blocks | `1.25em` |
### Constraints