Problem: After installed Anaconda, I am typing the following line into my console: conda create -n py33 python=3.3 anaconda However,…

# LeetCode 121. Best Time to Buy and Sell Stock

Description https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ Say you have an array for which the ith element is the price of a given stock on day i. If…

# Machine Learning Coding Tutorial 1. Hello World

The tutorial is about making a simple machine learning Python program. The program takes a description of the fruit as…

# LeetCode 20. Valid Parentheses

Description https://leetcode.com/problems/valid-parentheses/ Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. An input string is…

# LeetCode 12. Integer to Roman

Description https://leetcode.com/problems/integer-to-roman/ Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from…

# LeetCode 9. Palindrome Number

Description https://leetcode.com/problems/palindrome-number/ Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1:…

# LeetCode 8. String to Integer (atoi)

Description https://leetcode.com/problems/string-to-integer-atoi/ Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the…

# LeetCode 28. Implement strStr()

Description https://leetcode.com/problems/implement-strstr/ Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of…

# LeetCode 4. Median of Two Sorted Arrays

Description https://leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of…

# HackerRank – Staircase (Java)

HackerRank – Staircase (Java) Description https://www.hackerrank.com/challenges/staircase Consider a staircase of size n = 4: # ## ### #### Observe that…