Open in app

Sign In

Write

Sign In

Nhut Nguyen
Nhut Nguyen

1.4K Followers

Home

About

Published in

LeetSolve

·6 days ago

How To Solve Coding Challenge 165. Compare Version Numbers

With Complete Code in C++, Explanation, Complexity Analysis and Discussion — Problem statement Given two version numbers, version1 and version2, compare them. Version numbers consist of one or more revisions joined by a dot '.'. Each revision consists of digits and may contain leading zeros. Every revision contains at least one character. …

Cpp

3 min read

How To Solve Coding Challenge 165. Compare Version Numbers
How To Solve Coding Challenge 165. Compare Version Numbers
Cpp

3 min read


Published in

LeetSolve

·May 15

How To Solve Coding Challenge 1288. Remove Covered Intervals

How std::vectors are ordered in C++ — Problem statement Given an array intervals where intervals[i] = [li, ri] represent the interval [li, ri), remove all intervals that are covered by another interval in the list. The interval [a, b) is covered by the interval [c, d) if and only if c <= a and b <= d. Return the…

Cpp

3 min read

How To Solve Coding Challenge 1288. Remove Covered Intervals
How To Solve Coding Challenge 1288. Remove Covered Intervals
Cpp

3 min read


Published in

LeetSolve

·May 8

How To Solve Coding Challenge 242. Valid Anagram

With Complete Code in C++, Explanation, Complexity Analysis and Discussion — Problem statement Given two strings s and t, return true if t is an anagram of s, and false otherwise. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. Example 1 Input: s = "anagram", t =…

Cpp

3 min read

How To Solve Coding Challenge 242. Valid Anagram
How To Solve Coding Challenge 242. Valid Anagram
Cpp

3 min read


Published in

LeetSolve

·May 1

C++ Solution To Coding Challenge 739. Daily Temperatures

How a reversed iteration can improve performance — Problem statement Given an array of integers temperatures representing the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the i-th day to get a warmer temperature. …

Cpp

4 min read

C++ Solution To Coding Challenge 739. Daily Temperatures
C++ Solution To Coding Challenge 739. Daily Temperatures
Cpp

4 min read


Published in

LeetSolve

·Apr 10

C++ Solution to Coding Challenge 844. Backspace String Compare

How to use std::vector as a std::stack — Problem statement Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace character. Note that after backspacing an empty text, the text will continue empty. Example 1 Input: s = "ab#c", t = "ad#c" Output: true Explanation: Both s and t become…

Cpp

2 min read

C++ Solution to Coding Challenge 844. Backspace String Compare
C++ Solution to Coding Challenge 844. Backspace String Compare
Cpp

2 min read


Published in

LeetSolve

·Mar 13

C++ Solution to Coding Challenge 560. Subarray Sum Equals K

An example of the Prefix Sum method — Problem Statement Given an array of integers nums and an integer k, return the total number of continuous subarrays whose sum equals to k. Example 1 Input: nums = [1,1,1], k = 2 Output: 2 Example 2 Input: nums = [1,2,3], k = 3 Output: 2 Constraints 1 <= nums.length <= 2 * 10^4. -1000 <= nums[i]…

Cpp

3 min read

C++ Solution to Coding Challenge 560. Subarray Sum Equals K
C++ Solution to Coding Challenge 560. Subarray Sum Equals K
Cpp

3 min read


Mar 8

Creating A Personal Brand That Gets You Hired For A Tech Job

How To Build A Professional Online Presence — Today, having a professional online presence is as essential as a good resume to land your dream job. Just because you are not in the office all day doesn’t mean you don’t have to look professional. Here are some tips on how to build a professional online presence for tech…

Job Hunting

4 min read

Creating A Personal Brand That Gets You Hired For A Tech Job
Creating A Personal Brand That Gets You Hired For A Tech Job
Job Hunting

4 min read


Published in

LeetSolve

·Mar 6

C++ Solution to Coding Challenge 1046. Last Stone Weight

An example of using std::priority_queue — Problem statement You are given an array of integers stones where stones[i] is the weight of the i-th stone. We are playing a game with the stones. On each turn, we choose the heaviest two stones and smash them together. Suppose the heaviest two stones have weights x and y with x…

Cpp

2 min read

C++ Solution to Coding Challenge 1046. Last Stone Weight
C++ Solution to Coding Challenge 1046. Last Stone Weight
Cpp

2 min read


Mar 1

How To Use Words In A Resume That People Will Read

The importance of word choice — When building a resume, content is key. The design and layout of your resume are important, but recruiters are primarily looking at your resume content. Understanding which words to use and how to phrase them effectively will go a long way toward landing you a job interview. The Dos Some tips for…

Resume Writing Tips

3 min read

How To Use Words In A Resume That People Will Read
How To Use Words In A Resume That People Will Read
Resume Writing Tips

3 min read


Published in

LeetSolve

·Feb 27

C++ Solution to Coding Challenge 682. Baseball Game

Using std::vector as a stack — Problem statement You are keeping score for a baseball game with strange rules. The game consists of several rounds, where the scores of past rounds may affect future rounds' scores. At the beginning of the game, you start with an empty record. You are given a list of strings ops, where ops[i]…

Cpp

3 min read

C++ Solution to Coding Challenge 682. Baseball Game
C++ Solution to Coding Challenge 682. Baseball Game
Cpp

3 min read

Nhut Nguyen

Nhut Nguyen

1.4K Followers

Storyteller. I write code, instructions and stories. https://nhutnguyen.com

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech