Description
Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.
You have the following 3 operations permitted on a word:
- Insert a character
- Delete a character
- Replace a character
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return all distinct solutions to the n-queens puzzle.
Each solution contains a distinct board configuration of the n-queens’ placement, where 'Q'
and '.'
both indicate a queen and an empty space respectively.
在《移动应用开发(MAD)》课程第一次作业中,遇到了一些BUG。在数据绑定的情况下,onCheckedChanged
回调事件莫名被调用了两次。本文将探究一下这些BUG。
LeetCode 25 Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.
Golang是Google开发的一种静态强类型、编译型、开发型,并具有垃圾回收的编程语言。本文将介绍Go开发环境的搭建、Go开发基础知识以及Go 1.11的新特性Module。
LeetCode 23 Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.