---
title: "Discussion on \"LeetCode 264 Ugly Number II - Two approaches(Med, Java, O(n))\" | Hashnode"
description: "Discussion on \"LeetCode 264 Ugly Number II - Two approaches(Med, Java, O(n))\". Three pointers to keep track of the primes"
url: "https://hashnode.com/posts/leetcode-264-ugly-number-ii-two-approachesmed-java-on/687350d8c072bf613a12f9a7"
---

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

Discussion

# [LeetCode 264 Ugly Number II - Two approaches(Med, Java, O(n))](https://huanganni.hashnode.dev/leetcode-264-ugly-number-ii-two-approachesmed-java-on?utm_source=hashnode&utm_medium=feed)

Three pointers to keep track of the primes

Jul 13, 2025 · 2 min read · huanganni.hashnode.dev  
Read the article

-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#leetcode-medium](https://hashnode.com/tag/leetcode-medium)
-   [#java](https://hashnode.com/tag/java)
-   [#prime](https://hashnode.com/tag/prime)

## Written by

[Anni Huang](https://hashnode.com/@HuangAnni)

@HuangAnni · Singapore

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

LLM Training Operation Specialist @ ByteDance | Ex-Master of IT in Business (AI track) at SMU

I’m Anni Huang, an AI researcher-in-training currently at ByteDance, specializing in LLM training operations with a coding focus. I bridge the gap between engineering execution and model performance, ensuring the quality, reliability, and timely delivery of large-scale training projects.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
