top of page
Search
Hui Wang
Jan 10, 20234 min read
90. Machine learning: Control Statements in Python
Python has several types of control statements, including: 1. Conditional statements The conditional statement allows you to check...
Hui Wang
Jan 9, 20233 min read
89. Machine learning: Python Operators
Python divides the operators into the following groups: 1. Arithmetic operators Arithmetic operators perform basic math operations like...
Hui Wang
Jan 4, 20231 min read
88. Machine learning: Keywords for Python
In Python, keywords are reserved words with special meanings in the language. They cannot be used as variables, function names, or any...
Hui Wang
Jan 3, 20232 min read
87. Machine learning: Use of Jupyter Notebook
Jupyter Notebooks are a web-based interactive computing platform that allows users to combine code, text, and other media in a single...
Hui Wang
Jan 3, 20231 min read
86. Machine learning: Installing Anaconda on macOS
To install Anaconda on your Mac, follow these steps: Download the Anaconda installer from the official website:...
Hui Wang
Dec 16, 20221 min read
85. SwiftUI: How to delete and move elements of a List (NavigationView)
Today I will show you how to delete and move elements of a List. (demo with NavigationView). import SwiftUI struct ContentView: View { ...
Hui Wang
Dec 15, 20221 min read
84. SwiftUI: How to adjust the order of elements in the List (NavigationView)
Today I will show you how to adjust the order of elements in the List. (demo with NavigationView). import SwiftUI struct ContentView:...
Hui Wang
Dec 14, 20221 min read
83. SwiftUI: How to delete elements in a List (NavigationView)
Today I will show you how to delete elements in a List. (demo with NavigationView). import SwiftUI struct ContentView: View { /// 1....
Hui Wang
Nov 30, 20221 min read
82. Interview: Reverse String (LeetCode Easy)
https://leetcode.com/problems/reverse-string/ Solution: Time complexity: O(n) Space complexity: O(1) Two-pointer technique Code: class...
Hui Wang
Nov 29, 20221 min read
81. Interview: Single Number (LeetCode Easy)
https://leetcode.com/problems/single-number/ Solution: Time complexity: O(n) Space complexity: O(1) It is not hard to find non-duplicate...
Hui Wang
Nov 24, 20221 min read
80. Interview: Contains Duplicate (LeetCode Easy)
https://leetcode.com/problems/contains-duplicate/ Solution 1: Time complexity : O(nlogn) Space complexity : O(1) After sorting an array,...
Hui Wang
Nov 23, 20221 min read
79. Interview: Remove Duplicates from Sorted Array (LeetCode Easy)
https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Train of thought: Two-pointer technique We can NOT use any extra...
Hui Wang
Nov 18, 20222 min read
78. SwiftUI: How to insert new items to a List (NavigationView)
Today I will show you how to insert new items into a List (demo with NavigationView). import SwiftUI struct ContentView: View { /// 1....
Hui Wang
Nov 17, 20221 min read
77. SwiftUI: Use List to show content vertically
The List in SwiftUI is like the UITableView in UIKit, which is used to show the contents of an array in the vertical direction. Make the...
Hui Wang
Nov 16, 20221 min read
76. Article: How Xcode 14 unintentionally increases app size
How Xcode 14 unintentionally increases app size Package size is a problem that mobile developers have to deal with now. A lot of new...
bottom of page