The richest man in Babylon

Seven cure for a lean purse

    Read More

    imooc Restful API

    Tools

    1. MAMP
    2. MySQLWorkBench
    3. Restlet client

    Read More

    Java Review

    1. OOP concept
      Q: what is OOP?
      A: OOP stands for Objects Oriented programming. It is a methodology to design a program using classes and objects. It simplifies the softeare development and maintenance by providing some concepts like Inheritance, Polymorphism, Abstraction, Encapsulation.

    Read More

    Web skill Q&A

    1. What is MVC? Advantages and Disadvantages.
      MVC stands for Model, View, Controller. It’s a design pattern which seperates application into three layers of functionality.

    Read More

    Algorithm review

    1. twoSum - Array, Object
      brute force

      1
      2
      3
      4
      5
      6
      7
      const twoSum = (nums, target) => {
      for(let i = 0; i < nums.length - 1; i++)
      for(let j = i + 1; j < nums.length; j++){
      if(nums[i] + nums[j] == target)
      return [i, j];
      }
      }

    Read More

    Array - Leetcode

    Rotate

    #189 Rotate Array
    Given an array, rotate the array to the right by k steps, where k is non-negative.
    e.g arr = [1, 2, 3, 4, 5, 6, 7], k = 3.

    Read More

    String - Leetcode

    Reverse

    #344 Reverse String
    Given a string, reverse it.
    Use two pointers - low and high.

    1
    2
    3
    4
    while(low < hight){
    swap low and high;
    low++ and high--;
    }

    Read More

    Make a WordPress Website

    Read More

    Add a virtual host in MAMP

    MAMP is a local Web development solution.

    1. Apache config

    Read More

    Browsers Shortcuts for MAC

    Chrome

    Read More