Skip to content

Commit 0f0c9a4

Browse files
committed
♻️ change domain: jooncco.com -> jooncco.github.io
1 parent c03d209 commit 0f0c9a4

File tree

2 files changed

+65
-72
lines changed

2 files changed

+65
-72
lines changed

_config.yml

Lines changed: 57 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -5,92 +5,91 @@
55
# For technical reasons, this file is *NOT* reloaded automatically when you use
66
# `jekyll serve`. If you change this file, please restart the server process.
77

8-
remote_theme : "mmistakes/minimal-mistakes@4.24.0"
9-
minimal_mistakes_skin : "air" # "default", "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise"
8+
remote_theme: "mmistakes/minimal-mistakes@4.24.0"
9+
minimal_mistakes_skin: "air" # "default", "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise"
1010

1111
# Site Settings
12-
locale : "en-US"
13-
title : "<jooncco />"
14-
title_separator : "|"
15-
subtitle : "Hate your laziness"
16-
name : "jooncco"
17-
description : "About software engineer jooncco."
18-
url : "https://jooncco.com"
19-
baseurl : "" # the subpath of your site, e.g. "/blog"
20-
repository : "jooncco/jooncco.github.io" # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes"
21-
teaser : "/public/images/favicon/android-chrome-192x192.png" # path of fallback teaser image, e.g. "/public/images/500x300.png"
22-
logo : "/public/images/favicon/android-chrome-192x192.png" # path of logo image to display in the masthead, e.g. "/public/images/88x88.png"
23-
masthead_title : # overrides the website title displayed in the masthead, use " " for no title
24-
breadcrumbs : true # true, false (default)
25-
words_per_minute : 200
12+
locale: "en-US"
13+
title: "<jooncco />"
14+
title_separator: "|"
15+
subtitle: "Hate your laziness"
16+
name: "jooncco"
17+
description: "About software engineer jooncco."
18+
url: "https://jooncco.github.io"
19+
baseurl: "" # the subpath of your site, e.g. "/blog"
20+
repository: "jooncco/jooncco.github.io" # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes"
21+
teaser: "/public/images/favicon/android-chrome-192x192.png" # path of fallback teaser image, e.g. "/public/images/500x300.png"
22+
logo: "/public/images/favicon/android-chrome-192x192.png" # path of logo image to display in the masthead, e.g. "/public/images/88x88.png"
23+
masthead_title: # overrides the website title displayed in the masthead, use " " for no title
24+
breadcrumbs: true # true, false (default)
25+
words_per_minute: 200
2626
comments:
27-
provider : "facebook" # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "custom"
27+
provider: "facebook" # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "custom"
2828
disqus:
29-
shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
29+
shortname: # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
3030
discourse:
31-
server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org
31+
server: # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org
3232
facebook:
3333
# https://developers.facebook.com/docs/plugins/comments
34-
appid : 278555981041512
35-
num_posts : 5 # 5 (default)
36-
colorscheme : "dark" # "light" (default), "dark"
34+
appid: 278555981041512
35+
num_posts: 5 # 5 (default)
36+
colorscheme: "dark" # "light" (default), "dark"
3737
utterances:
38-
theme : # "github-light" (default), "github-dark"
39-
issue_term : # "pathname" (default)
38+
theme: # "github-light" (default), "github-dark"
39+
issue_term: # "pathname" (default)
4040
staticman:
41-
branch : # "master"
42-
endpoint : # "https://{your Staticman v3 API}/v3/entry/github/"
41+
branch: # "master"
42+
endpoint: # "https://{your Staticman v3 API}/v3/entry/github/"
4343
reCaptcha:
44-
siteKey :
45-
secret :
44+
siteKey:
45+
secret:
4646
atom_feed:
47-
path : # blank (default) uses feed.xml
48-
search : true # true, false (default)
49-
search_full_content : true # true, false (default)
50-
search_provider : # lunr (default), algolia, google
47+
path: # blank (default) uses feed.xml
48+
search: true # true, false (default)
49+
search_full_content: true # true, false (default)
50+
search_provider: # lunr (default), algolia, google
5151
algolia:
52-
application_id : # YOUR_APPLICATION_ID
53-
index_name : # YOUR_INDEX_NAME
54-
search_only_api_key : # YOUR_SEARCH_ONLY_API_KEY
55-
powered_by : # true (default), false
52+
application_id: # YOUR_APPLICATION_ID
53+
index_name: # YOUR_INDEX_NAME
54+
search_only_api_key: # YOUR_SEARCH_ONLY_API_KEY
55+
powered_by: # true (default), false
5656
google:
57-
search_engine_id : # YOUR_SEARCH_ENGINE_ID
58-
instant_search : # false (default), true
57+
search_engine_id: # YOUR_SEARCH_ENGINE_ID
58+
instant_search: # false (default), true
5959
# SEO Related
60-
google_site_verification :
61-
bing_site_verification :
62-
yandex_site_verification :
63-
naver_site_verification :
60+
google_site_verification:
61+
bing_site_verification:
62+
yandex_site_verification:
63+
naver_site_verification:
6464

6565
# Social Sharing
6666
twitter:
67-
username :
67+
username:
6868
facebook:
69-
username :
70-
app_id :
71-
publisher :
72-
og_image : "/public/images/logo.png" # Open Graph/Twitter default site image
69+
username:
70+
app_id:
71+
publisher:
72+
og_image: "/public/images/logo.png" # Open Graph/Twitter default site image
7373
# For specifying social profiles
7474
# - https://developers.google.com/structured-data/customize/social-profiles
7575
social:
76-
type : # Person or Organization (defaults to Person)
77-
name : # If the user or organization name differs from the site's name
76+
type: # Person or Organization (defaults to Person)
77+
name: # If the user or organization name differs from the site's name
7878
links: # An array of links to social media profiles
7979

8080
# Analytics
8181
analytics:
82-
provider : false # false (default), "google", "google-universal", "google-gtag", "custom"
82+
provider: false # false (default), "google", "google-universal", "google-gtag", "custom"
8383
google:
84-
tracking_id :
85-
anonymize_ip : # true, false (default)
86-
84+
tracking_id:
85+
anonymize_ip: # true, false (default)
8786

8887
# Site Author
8988
author:
90-
name : "준꼬 🇰🇷"
91-
avatar : "/public/images/me.jpg"
92-
bio : ""
93-
location : "Seoul, Republic of Korea"
89+
name: "준꼬 🇰🇷"
90+
avatar: "/public/images/me.jpg"
91+
bio: ""
92+
location: "Seoul, Republic of Korea"
9493
# email : "jooncco.g@gmail.com"
9594
links:
9695
- label: "jooncco.g@gmail.com"
@@ -131,7 +130,6 @@ footer:
131130
# icon: "fab fa-fw fa-bitbucket"
132131
# url:
133132

134-
135133
# Reading Files
136134
include:
137135
- .htaccess
@@ -169,15 +167,13 @@ keep_files:
169167
encoding: "utf-8"
170168
markdown_ext: "markdown,mkdown,mkdn,mkd,md"
171169

172-
173170
# Conversion
174171
markdown: kramdown
175172
highlighter: rouge
176173
lsi: false
177174
excerpt_separator: "\n\n"
178175
incremental: false
179176

180-
181177
# Markdown Processing
182178
kramdown:
183179
input: GFM
@@ -197,14 +193,12 @@ sass:
197193
sass_dir: _sass
198194
style: compressed # https://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
199195

200-
201196
# Outputting
202197
permalink: /:categories/:title/
203198
paginate: 5 # amount of posts to show
204199
paginate_path: /page:num/
205200
timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
206201

207-
208202
# Plugins (previously gems:)
209203
plugins:
210204
- jekyll-paginate
@@ -220,7 +214,6 @@ whitelist:
220214
- jekyll-gist
221215
- jekyll-feed
222216

223-
224217
# Archives
225218
# Type
226219
# - GitHub Pages compatible archive pages built with Liquid ~> type: liquid (default)
@@ -249,7 +242,6 @@ tag_archive:
249242
# category: /categories/:name/
250243
# tag: /tags/:name/
251244

252-
253245
# HTML Compression
254246
# - https://jch.penibelst.de/
255247
compress_html:
@@ -278,4 +270,4 @@ defaults:
278270
read_time: true
279271
comments: true
280272
related: true
281-
mathjax: true
273+
mathjax: true

_posts/2022-03-06-leetcode-918.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ tags:
77
- Dynamic programming
88
last_modified_at: 2022-03-06T14:59:00+09:00
99
---
10+
1011
<a href="https://leetcode.com/">
1112
<img src="/public/images/leetcode-logo.jpeg"/>
1213
</a>
1314

1415
## Problem
16+
1517
<a href="https://leetcode.com/problems/maximum-sum-circular-subarray/">
1618
<img src="/public/images/leetcode-918.png"/>
1719
</a>
@@ -20,10 +22,10 @@ last_modified_at: 2022-03-06T14:59:00+09:00
2022

2123
## Key Idea
2224

23-
This problem is an advanced version of **[\[LeetCode\] 53. Maximum Subarray](https://jooncco.com/leetcode-53/)**.
25+
This problem is an advanced version of **[\[LeetCode\] 53. Maximum Subarray](https://jooncco.github.io/leetcode-53/)**.
2426
The only differnce is that the `nums` array given is circular or not.
2527

26-
The target subarray can be in two forms:
28+
The target subarray can be in two forms:
2729

2830
**Wrapped around subarrays**
2931
<img src="/public/images/leetcode-918-figure-2.png"/>
@@ -35,14 +37,13 @@ In this case, sum of the rest subarray in the middle always becomes minimum.
3537
Thus, we can calculate the maximum sum by `max(maxSubarraySum, totalSum-minSubarraySum)`.
3638
From left to right, calculate the `maxSubarraySum` and `minSubarraySum` individually, and calculate the ultimate answer.
3739

38-
39-
- Time: \\(O(N)\\)
40+
- Time: \\(O(N)\\)
4041
- Space: \\(O(1)\\)
4142

4243
<br/>
4344

4445
> **Note**
45-
Think about this corner case: all the elements in `nums` array are negative integers.
46+
> Think about this corner case: all the elements in `nums` array are negative integers.
4647
4748
## Implementation
4849

@@ -55,7 +56,7 @@ class Solution {
5556
private:
5657
const int NEG_INF= -1e5;
5758
const int POS_INF= 1e5;
58-
59+
5960
public:
6061
int maxSubarraySumCircular(vi &nums) {
6162
int n= nums.size(), totalSum= 0, maxSum= NEG_INF, minSum= POS_INF;
@@ -71,4 +72,4 @@ public:
7172
return max(maxSum, totalSum-minSum);
7273
}
7374
};
74-
```
75+
```

0 commit comments

Comments
 (0)