DEV Community

loading...
Nam H. Le profile picture

Nam H. Le

404 bio not found

Location Danang, Vietnam Joined Joined on  github website
Work

Front end Developer

All 26 comments

What was your win this week?

Find first developer job after 10 years in medicine professi...

Solving "Sum All Numbers in a Range" / freeCodeCamp Algorithm Challenges

No. There is no problem in your methodology. But I think you ...

Valid parentheses, solving a Facebook interview question.

It’s true. C/C++ can solve it in almost 0ms.

Sum root to leaf numbers, solving an Amazon interview question

Can you tell me how to create those GIFs?

Valid parentheses, solving a Facebook interview question.

It’s me again. Here’s my solution. function isValid(s) { ...

Valid parentheses, solving a Facebook interview question.

Yes, that way is better for products. But the boundary betwee...

Valid parentheses, solving a Facebook interview question.

You can check a number is not equal to zero by if (n) {} or c...

Now, I am a tag moderator at DEV 🎉🎉

Congats!!

Algorithms: Common Years Problem

First of all, to avoid ambiguation, we assume that if a per...

Algorithms: Common Years Problem

Hi Mohammed Shaikh, I want to contribute to your post to make...

Algorithms Problem Solving: Odd in Matrix

I believe that there is a solution use only 4 numbers: number...

Leetcode - Merge Two Sorted Lists (with JavaScript)

Maybe you are wrong. You need 2 while loop after main while l...

Longest substring without repeating characters, solving Google interview question.

Yes it is

Walking a tree (depth first search)

That is a ideal structure, and does not exist in reality worl...

Walking a tree (depth first search)

Oops, I’m wrong at some points. Btw, thanks for sharing. Chee...

Walking a tree (depth first search)

First, if you need to introduce data structure of a problem. ...

Solving "Falsy Bouncer" / freeCodeCamp Algorithm Challenges

Or you just need: function bouncer(arr) { return arr.filt...

Daily Challenge #259 - Duplicate Encoder

Same to me || 0

Daily Challenge #259 - Duplicate Encoder

That is Tagged template literals, to save 2 character :D

Daily Challenge #259 - Duplicate Encoder

Javascript solution: const uniq = (str, chr) => str.inde...

Leetcode - Reverse Integer (with JavaScript)

Hi Urfan, I want to suggest another solution: const revers...

Power of 2, solving a google interview question. Playing with bits.

Hi, It should be const pow2 = n => n & ((n & (n-1...

I Switched To Web Development

Same to me. I switched from a doctor into web dev right now a...

Generating Prime Numbers: Reloaded

Some advice: Your is_prime function has O(n) complexity. Yo...

What did you learn this week on Dev.to?

You just add a new method for instance of File class, or it’s...

loading...
Forem Open with the Forem app