其实只是计数排序而已🌶
leetcode:sudoku solver
发表于
|
Visitors
Words count in article
721
|
Reading time
3
Write a program to solve a Sudoku puzzle by filling the empty cells.
A sudoku solution must satisfy all of the following rules:
Each of the digits 1-9 must occur exactly once in each row.
Each of the digits 1-9 must occur exactly once in each column.
Each of the the digits 1-9 must occur exactly once in each of the 9 3x3 sub-boxes of the grid.
Empty cells are indicated by the character ‘.’
leetcode:ugly number III
发表于
|
Visitors
Words count in article
302
|
Reading time
1
Write a program to find the n-th ugly number.
Ugly numbers are positive integers which are divisible by a or b or c.
Implementing a Reliable Transport Protocol
发表于
|
Visitors
Words count in article
1.4k
|
Reading time
7
leetcode:populating next rightpointersin each node II
发表于
|
Visitors
Words count in article
962
|
Reading time
4
Given a binary tree
1 | struct Node { |
Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL.
Initially, all next pointers are set to NULL.