JavaScript Tips for Algorithm

String Tips Light cloning Use regexp for .replace(a,b) is exchange first letter of first argument to second argument. For convert every matching letter, put the letter inside regexp, . example Convert Number There are a lot of ways to convert strings to numbers, but is recommended. Plus, It…

Read More

8 Must Know Git Techniques for Junior Developer

Introduction Everyone knows about manage Git is extremely important. However, editing, rollback, deleting the history with Git is way much stressful sometimes. In this post, I’ll talk about the basic Git techniques for all the developers must know. 1. Git Clone When you’re working on an existing…

Read More

Two Sum

Problem Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Example 1: Example…

Read More

Reverse Integer

Problem Given a 32-bit signed integer, reverse digits of an integer. Note: Assume we are dealing with an environment that could only store integers within the 32-bit signed integer range: . For the purpose of this problem, assume that your function returns 0 when the reversed integer overflows…

Read More

Palindrome Number

Problem Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Follow up: Could you solve it without converting the integer to a string? Example 1: Example 2: Example 3: Example 4: Constraints: -231 <= x <= 231 - 1 My Solution success…

Read More
Page 24 Of 26