摘要:
https://leetcode.com/problems/rotate-image/#/description You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clock
阅读全文
posted @ 2017-07-24 21:11
Premiumlab
阅读(124)
推荐(0)
摘要:
https://leetcode.com/problems/copy-list-with-random-pointer/#/description A linked list is given such that each node contains an additional random poi
阅读全文
posted @ 2017-07-24 17:45
Premiumlab
阅读(103)
推荐(0)
摘要:
https://leetcode.com/problems/course-schedule-ii/#/description There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses
阅读全文
posted @ 2017-07-24 16:53
Premiumlab
阅读(137)
推荐(0)
摘要:
https://leetcode.com/problems/h-index/#/description Given an array of citations (each citation is a non-negative integer) of a researcher, write a fun
阅读全文
posted @ 2017-07-24 11:20
Premiumlab
阅读(104)
推荐(0)
摘要:
https://leetcode.com/problems/walls-and-gates/#/description You are given a m x n 2D grid initialized with these three possible values. -1 - A wall or
阅读全文
posted @ 2017-07-23 21:47
Premiumlab
阅读(110)
推荐(0)
摘要:
https://leetcode.com/problems/maximal-square/#/description Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1
阅读全文
posted @ 2017-07-21 23:36
Premiumlab
阅读(150)
推荐(0)
摘要:
https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/#/description Follow up for problem "Populating Next Right Pointers in Ea
阅读全文
posted @ 2017-07-21 17:00
Premiumlab
阅读(134)
推荐(0)
摘要:
https://leetcode.com/problems/powx-n/#/description Implement pow(x, n). Sol: Recursion. Sol 2 : iteration.
阅读全文
posted @ 2017-07-13 18:21
Premiumlab
阅读(128)
推荐(0)
摘要:
https://leetcode.com/problems/target-sum/#/description You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2
阅读全文
posted @ 2017-07-12 23:03
Premiumlab
阅读(193)
推荐(0)
摘要:
https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Graphs/Word%20Ladder%20Example%20Problem.ipynb BFS. W
阅读全文
posted @ 2017-07-12 18:13
Premiumlab
阅读(440)
推荐(0)