PixieDust is a Python library for use in Jupyter notebooks. Using PixieDust is cool, but it is only supported by IBM Watson Studio and the […]
Reverse Integer – #7 LeetCode
Description Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: […]
ZigZag Conversion – #6 LeetCode
Description The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a […]
Experiencing Parallel Programming on Apache Spark – Week #2 Scalable Machine Learning on Big Data Using Apache Spark
This is the note I take in the second week of Scalable Machine Learning on Big Data using Apache Spark course. This is a Coursera […]
Longest Palindrome Substring – #5 LeetCode
Description Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: “babad” Output: “bab” […]
Median of Two Sorted Arrays – #4 Leetcode
Description There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should […]
3. Longest Substring Without Repeating Characters
Description Given a string, find the length of the longest substring without repeating characters. Example 1: Input: “abcabcbb” Output: 3 Explanation: The answer is “abc”, with the […]
Add Two Numbers – #2 LeetCode
Problem You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add […]
Two Sum – #1 LeetCode
Problem Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input […]
Email Domain Validation – PHP Handson
Sometimes it is necessary to check if a mail is valid when a user is trying to register a new account on your website to […]