摘要:
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/reverse-integer/Reverse digits of an integer.Example1: x ... 阅读全文
摘要:
# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/median-of-two-sorted-arrays/There are two sorted arrays A and B of size m and n respectively... 阅读全文
摘要:
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/add-two-numbers/You are given two linked lists representi... 阅读全文
摘要:
# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific tar... 阅读全文
摘要:
Pick nouns or noun phrases as classesIdentifying objects is easy, they should always be nouns. As we have seen in the Circuit Controller example, we picked up nouns from the requirements as classes in... 阅读全文
摘要:
Stay close to problem domainDesign is a process of modeling the problem domain into programming constructs. Object oriented design simplifies the design process by maintaining a one-to-one mapping bet... 阅读全文