Blog
โ
- โ
โ
โ
โ
โ - โ
โ
โ
โ
โ - โ
โ
โ
โ
โ - โ
โ
โ
โ
โ
โ
![[O(1) Time and Space] LeetCode 1791. Find Center of Star Graph - Easy Solution | Go](/images/banner/posts/1791-find-center-of-star-graph.webp)
[O(1) Time and Space] LeetCode 1791. Find Center of Star Graph - Easy Solution | Go
In a star graph, the center node will appear in each of the edges which means every node will contain the center node. So, we just need to find the common node in the first two edges.
![[โ
Beats ๐ฏ] LeetCode 1052. Grumpy Bookstore Owner - Easy Solution | Go](/images/banner/posts/1052-grumpy-bookstore-owner.webp)
[โ Beats ๐ฏ] LeetCode 1052. Grumpy Bookstore Owner - Easy Solution | Go
There is a bookstore owner that has a store open for n minutes. Every minute, some number of customers enter the store. You are given an integer array customers of length n where customers[i] is the number of the customer that enters the store at the start of the ith minute and all those customers leave after the end of that minute.