---
title: "Discussion on \"LeetCode Challenge #4: How Many Numbers Are Smaller Than the Current Number\" | Hashnode"
description: "Discussion on \"LeetCode Challenge #4: How Many Numbers Are Smaller Than the Current Number\". Problem statement:\nGiven 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].\nReturn the answer in an ..."
url: "https://hashnode.com/posts/leetcode-challenge-4-how-many-numbers-are-smaller-than-the-current-number/5ec93422a7a2c43b12377ccd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode Challenge #4: How Many Numbers Are Smaller Than the Current Number](https://blog.lo-victoria.com/leetcode-challenge-4-how-many-numbers-are-smaller-than-the-current-number?utm_source=hashnode&utm_medium=feed)

Problem statement: 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\]. Return the answer in an ...

May 23, 2020 · blog.lo-victoria.com  
Read the article

-   [#challenge](https://hashnode.com/tag/challenge)
-   [#java](https://hashnode.com/tag/java)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Victoria Lo](https://hashnode.com/@victoria)

@victoria · Singapore

  
[View profile](https://hashnode.com/@victoria)

A nerd in books, tea, games and software.

I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
