摘要:
最近一直在学习Deep Frist Search,也在leetcode上练习了不少题目。从最开始的懵懂,到现在遇到问题基本有了思路。依然清晰的记得今年2月份刚开始刷题的时做subsets的那个吃力劲,脑子就是转不过来到底该如何的递归,甚至试过使用debugger一步步的来看看堆栈到底是如何调用和返回 阅读全文
posted @ 2017-05-11 12:08
蓝色地中海
阅读(314)
评论(0)
推荐(0)
摘要:
Problem statement: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. Soluti 阅读全文
posted @ 2017-05-11 09:39
蓝色地中海
阅读(170)
评论(0)
推荐(0)
摘要:
Problem statement: 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 int 阅读全文
posted @ 2017-05-11 09:30
蓝色地中海
阅读(138)
评论(0)
推荐(0)
摘要:
Problem statement: Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters o 阅读全文
posted @ 2017-05-11 08:26
蓝色地中海
阅读(249)
评论(0)
推荐(0)
摘要:
Problem statement: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent 阅读全文
posted @ 2017-05-11 05:29
蓝色地中海
阅读(156)
评论(0)
推荐(0)
摘要:
Problem statement: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence 阅读全文
posted @ 2017-05-11 02:26
蓝色地中海
阅读(190)
评论(0)
推荐(0)

浙公网安备 33010602011771号