htaiwan
CtrlK
  • Introduction
  • My App
    • 車子停哪裡
    • 公車何時來
    • My Utility Tool
    • 一個app工程師的AI之路(上)
  • 讀書心得
    • ARKit by Tutorials讀後感
  • Flutter Tutorial
    • Chapter 1: Getting Started with Flutter
    • Chapter 2: Flutter Navigation: Getting Started
    • Chapter 3: Building Layout
    • Chapter 4: Managing state
  • Daily Coding
    • 1. two sum
    • 2. Contiguous Subarray with Maximum Sum
    • 3. Merge K Sorted Linked Lists
    • 4. Array products
    • 5. Serialize and Deserialize Binary Tree
    • 6. Create a balanced binary search tree
    • 7. Trapping Rain Water
    • 8. Find Missing positive integer
    • 9. Constructs a pair
    • 10. Buddy Strings
    • 11. XOR linked list
    • 12. Deepest Node in a Binary Tree
    • 13. Dcode Message
    • 14. Count And Say
    • 15. Count Univalue Subtrees
  • LeetCode
    • Easy
      • Array
        • Remove Duplicates from Sorted Array
        • Best Time to Buy and Sell Stock II
        • Rotate Array
        • Contains Duplicate
        • Single Number
        • Intersection of Two Arrays II
        • Plus One
        • Move Zeroes
        • Two Sum
        • Valid Sudoku
      • Strings
        • Reverse String
        • Reverse Integer
        • First Unique Character in a String
  • Data Structures & Algorithms
    • Section I: Introduction
      • Chapter 1: Preface
      • Chapter 2: Swift Standard Library
      • Chapter 3: Complexity
    • Section II: Elementary Data Structures
      • Chapter 4: Linked List
      • Chapter 5: Linked List Challenges
      • Chapter 6: Stack Data Structure
      • Chapter 7: Stack Challenges
      • Chapter 8: Queues
      • Chapter 9: Challenges: Queue Data Structure
    • Section III: Trees
      • Chapter 10: Trees
      • Chapter 11: Tree Challenge
      • Chapter 12: Binary Trees
      • Chapter 13: Binary Tree Challenges
      • Chapter 14: Binary Search Trees
      • Chapter 15: Binary Search Tree Challenges
      • Chapter 16: AVL Trees
      • Chapter 17: AVL Tree Challenges
      • Chapter 18: Tries
      • Chapter 19: Trie Challenges
      • Chapter 20: Binary Search
      • Chapter 21: Binary Search Challenges
      • Chapter 22: The Heap Data Structure
      • Chapter 23: Heap Data Structure Challenges
      • Chapter 24: Priority Queue
      • Chapter 25: Priority Queue Challenges
    • Section IV: Sorting Algorithms
      • Chapter 26: O(n²) Sorting Algorithms
      • Chapter 27: O(n²) Sorting Challenges
      • Chapter 28: Merge Sort
      • Chapter 29: Merge Sort Challenge
      • Chapter 30: Radix Sort
      • Chapter 31: Radix Sort Challenge
      • Chapter 32: Heap Sort
      • Chapter 33: Heap Sort Challenges
      • Chapter 34: Quicksort
      • Chapter 35: Quicksort Challenges
    • Section V: Graphs
      • Chapter 36: Graphs
      • Chapter 37: Graphs Challenges
      • Chapter 38: Breadth-First Search
      • Chapter 39: Breadth-First Search Challenges
      • Chapter 40: Depth-First Search
      • Chapter 41: Depth-First Search Challenges
      • Chapter 42: Dijkstra’s Algorithm
      • Chapter 43: Dijkstra’s Algorithm Challenges
      • Chapter 44: Prim’s Algorithm
      • Chapter 45: Prim’s Algorithm Challenges
  • ARKit by Tutorials
    • Section I: Getting Started with ARKit
      • Chapter 1: Hello ARKit!
      • Chapter 2: Your First ARKit App
      • Chapter 3: Basic Session Management
      • Chapter 4: Adding 3D Objects & Textures
      • Chapter 5: Detecting Surfaces
      • Chapter 6: Adding Physics
    • Section II: Portal Apps
      • Chapter 7: Building a Portal
      • 番外篇 - 座標系統
      • Chapter 8: Adding Objects to Your World
      • Chapter 9: Geometry, Textures & Lighting
    • Section III: Interactive AR Apps
      • Chapter 10: Detecting Placeholders
      • Chapter 11: Beginning User Interaction
      • Chapter 12: Advanced User Interaction
      • Chapter 13: Location Tracking & Beacons
    • Section IV: Face-Based AR
      • Chapter 14: Getting Started with Face-Based AR
      • Chapter 15: Tracking the User’s Face
      • Chapter 16: Creating Assets for Face-Based AR
      • Chapter 17: Working with Blend Shapes
      • Chapter 18: Recording Your ARKit Experience with ReplayKit
    • Section V: Game Physics
      • Chapter 19: Beginning Game Physics
      • Chapter 20: Advanced Game Physics
    • Section VI: Persistent & Shared Experience
      • Chapter 21: World Tracking & Persistent AR Experiences
      • Chapter 22: Shared AR Experiences
    • Section VII: Image Tracking, Object Detection & AR Quick Look
      • Chapter 23: Introducing USDZ & AR Quick Look
      • Chapter 24: Detecting Images & 3D Objects
  • Beginning ARKit
    • Hello, Augmented World!
    • Happy AR Painter
    • Raykea
    • BaedekAR
    • Into the Third Dimension
  • Machine_Learning_iOS筆記
    • Section I: Machine Learning with Images
      • Chapter 1: Machine Learning, iOS & You
      • Chapter 2: Getting Started with Image Classification
      • Chapter 3: Training the Image Classifier
      • Chapter 4: Getting Started with Python & Turi Create
      • Chapter 5: Digging Deeper Into Turi Create
      • Chapter 6: Taking Control of Training with Keras
      • Chapter 7: Going Convolutional
      • Chapter 8: Advanced Convolutional Neural Networks
      • Chapter 9: Beyond Classification
      • Chapter 10: YOLO & Semantic Segmentation
    • Section II: Machine Learning with Sequences
      • Chapter 11: Data Collection for Sequence Classification
      • Chapter 12: Training a Model for Sequence Classification
      • Chapter 13: Sequence Classification
    • Section III: Natural Language Processing
      • Chapter 14: Natural Language Classification
      • Chapter 15: Natural Language Transformation, Part 1
      • Chapter 16: Natural Language Transformation, Part 2
  • Design_Patterns筆記
    • Section I: Hello, Design Patterns!
      • Chapter 1: What are Design Patterns?
      • Chapter 2: How to Read a Class Diagram
    • Section II: Fundamental Design Patterns
      • Chapter 3: Model-View-Controller Pattern
      • Chapter 4: Delegation Pattern
      • Chapter 5: Strategy Pattern
      • Chapter 6: Singleton Pattern
      • Chapter 7: Memento Pattern
      • Chapter 8: Observer Pattern
      • Chapter 9: Builder Pattern
    • Section III: Intermediate Design Patterns
      • Chapter 10: Model-View-ViewModel Pattern
      • Chapter 11: Factory Pattern
      • Chapter 12: Adapter Pattern
      • Chapter 13: Iterator Pattern
      • Chapter 14: Prototype Pattern
      • Chapter 15: State Pattern
      • Chapter 16: Multicast Delegate Pattern
      • Chapter 17: Facade Pattern
    • Section IV: Advanced Design Patterns
      • Chapter 18: Flyweight Pattern
      • Chapter 19: Mediator Pattern
      • Chapter 20: Composite Pattern
      • Chapter 21: Command Pattern
      • Chapter 22: Chain of Responsibility
      • Chapter 23: Coordinator Pattern
  • Swift_Apprentice筆記
    • Section I: Swift Basics
      • Chapter 1: Expressions, Variables & Constants
      • Chapter 2: Types & Operations
      • Chapter 3: Basic Control Flow
      • Chapter 4: Advanced Flow Control
      • Chapter 5: Functions
      • Chapter 6: Optionals
    • Section II: Collection Types
      • Chapter 7: Arrays, Dictionaries, and Sets
      • Chapter 8: Collection Iterations With Closures
      • Chapter 9: Strings
    • Section III: Building Your Own Types
      • Chapter 10: Structures
      • Chapter 11: Properties
      • Chapter 12: Methods
      • Chapter 13: Classes
      • Chapter 14: Advanced Classes
      • Chapter 15: Enumerations
      • Chapter 16: Protocols
      • Chapter 17: Generics
    • Section IV: Advanced Topics
      • Chapter 18: Access Control and Code Organization
      • Chapter 19: Custom Operators, Subscripts, Keypaths
      • Chapter 20: Pattern Matching
      • Chapter 21: Error Handling
      • Chapter 22: Encoding and Decoding Types
      • Chapter 23: Async Closures and Memory Management
      • Chapter 24: Value Types and Reference Type
      • Chapter 25: Protocol-Oriented Programming
Powered by GitBook
On this page

Was this helpful?

  1. LeetCode
  2. Easy

Array

Remove Duplicates from Sorted ArrayBest Time to Buy and Sell Stock IIRotate ArrayContains DuplicateSingle NumberIntersection of Two Arrays IIPlus OneMove ZeroesTwo SumValid Sudoku
PreviousEasyNextRemove Duplicates from Sorted Array

Last updated 5 years ago

Was this helpful?