I have recently started to attend the online coding contest. Leetcode has held weekly contests on Sunday early mornings - which isn't ideal for coders living in Europe. However, they have biweekly contests, which is run the Sat 3:30 to 5:30 (BST) every two weeks. Today's contest: https://leetcode.com/contest/biweekly-contest-30 I have managed to solve 3 puzzles in 30 minutes, however, failed to solve the fourth puzzle (difficulty level) in next hour. The programming language I choose is Python, C++. I have 1 Wrong Answer submission for Problem 3 - which adds total 10 minutes time penalization. ![image.png](https://cdn.steemitimages.com/DQmUaFWtkAwunRKTUt7pozLHUrXccxkF7xJJSVXHAjhZAS6/image.png) The fourth puzzle is not that difficult - it is a pity that I didn't get it - and my ranking is expected to drop. ## Reformat Date https://leetcode.com/contest/biweekly-contest-30/problems/reformat-date/ It is harder to use C++ as in C++ the [string split function](https://helloacm.com/how-to-split-a-string-in-c/) is not native. Python is good. ## Range Sum of Sorted Subarray Sums https://leetcode.com/contest/biweekly-contest-30/problems/range-sum-of-sorted-subarray-sums/ O(N^2) will work - as the input range is (10^3), however beware of the integer overflow. ## Minimum Difference Between Largest and Smallest Value in Three Moves https://leetcode.com/contest/biweekly-contest-30/problems/minimum-difference-between-largest-and-smallest-value-in-three-moves/ Sorting (O(N^LogN)) and then compare four different possibilities. ## Stone Game IV https://leetcode.com/contest/biweekly-contest-30/problems/stone-game-iv/ Dynamic Programming, similar to [this puzzle](https://helloacm.com/dynamic-programming-perfect-squares/) I'll share the solutions on the [blog](https://helloacm.com) in more details soon. Although the contest has ended, you can try to participate on the virtual contest. <hr/> Every little helps! I hope this helps! **Steem On!~** ------------------ If you like my work, please consider voting for me, thanks! https://steemit.com/~witnesses type in **justyy** and click ***VOTE*** https://steemyy.com/images/vote-for-justyy.jpg <BR/> **Alternatively, you could [proxy to me](https://steemyy.com/witness-voting/?witness=justyy&action=proxy) if you are too lazy to vote!** Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy ### Visit me at: [https://steemyy.com](https://steemyy.com)
post_id | 86,662,067 |
---|---|
author | justyy |
permlink | leetcode-biweekly-contest-30 |
category | witness-category |
json_metadata | {"tags":["witness-category","programming","whalepower","algorithms","coding","leetcode","contest","codeonsteem"],"image":["https:\/\/cdn.steemitimages.com\/DQmUaFWtkAwunRKTUt7pozLHUrXccxkF7xJJSVXHAjhZAS6\/image.png","https:\/\/steemyy.com\/images\/vote-for-justyy.jpg"],"links":["https:\/\/leetcode.com\/contest\/biweekly-contest-30","https:\/\/leetcode.com\/contest\/biweekly-contest-30\/problems\/reformat-date\/","https:\/\/helloacm.com\/how-to-split-a-string-in-c\/","https:\/\/leetcode.com\/contest\/biweekly-contest-30\/problems\/range-sum-of-sorted-subarray-sums\/","https:\/\/leetcode.com\/contest\/biweekly-contest-30\/problems\/minimum-difference-between-largest-and-smallest-value-in-three-moves\/","https:\/\/leetcode.com\/contest\/biweekly-contest-30\/problems\/stone-game-iv\/","https:\/\/helloacm.com\/dynamic-programming-perfect-squares\/","https:\/\/helloacm.com","https:\/\/steemit.com\/~witnesses","https:\/\/steemyy.com\/witness-voting\/?witness=justyy&action=proxy","https:\/\/steemyy.com\/witness-voting\/?witness=justyy","https:\/\/steemyy.com"],"app":"steemit\/0.2","format":"markdown"} |
created | 2020-07-11 16:23:30 |
last_update | 2020-07-11 16:23:30 |
depth | 0 |
children | 2 |
net_rshares | 51,029,877,479,688 |
last_payout | 2020-07-18 16:23:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 17.832 SBD |
curator_payout_value | 16.072 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 2,473 |
author_reputation | 2,062,739,781,884,297 |
root_title | "Leetcode Biweekly Contest 30" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gerber | 0 | 67,906,161,467 | 12.7% | ||
ezzy | 0 | 894,585,090,735 | 12.7% | ||
exyle | 0 | 1,289,294,771,391 | 12.7% | ||
ace108 | 0 | 182,414,085,523 | 16% | ||
bullionstackers | 0 | 200,994,254,801 | 10% | ||
leduc1984 | 0 | 161,585,557 | 80% | ||
justyy | 0 | 21,161,694,252,122 | 100% | ||
happyukgo | 0 | 19,407,682,842 | 100% | ||
fleur | 0 | 42,191,828,344 | 100% | ||
xyzashu | 0 | 5,605,173,541 | 100% | ||
wdougwatson | 0 | 1,238,757,481 | 12.7% | ||
doraemon | 0 | 268,959,238 | 100% | ||
robinlee | 0 | 505,844,832 | 100% | ||
dine77 | 0 | 41,275,496,349 | 7% | ||
al2ping | 0 | 58,331,173 | 100% | ||
oldman28 | 0 | 18,001,305,888 | 60% | ||
kikima | 0 | 662,745,899 | 100% | ||
tribesteemup | 0 | 14,946,679,787,820 | 100% | ||
geass | 0 | 552,591,780 | 100% | ||
superbing | 0 | 3,900,563,944 | 100% | ||
dailyfortune | 0 | 3,147,952,649 | 100% | ||
dobartim | 0 | 1,292,832,927,703 | 100% | ||
xiaoshancun | 0 | 15,707,880,231 | 100% | ||
stef1 | 0 | 574,812,999,407 | 100% | ||
dailystats | 0 | 4,999,572,576 | 100% | ||
steemflower | 0 | 152,521,636,423 | 70% | ||
khaleelkazi | 0 | 5,681,152,132 | 12.7% | ||
jianan | 0 | 51,756,085,278 | 100% | ||
emrebeyler | 0 | 6,530,141 | 12.7% | ||
cnbuddy | 0 | 1,728,732,027 | 0.1% | ||
anxin | 0 | 2,447,052,768 | 100% | ||
nealmcspadden | 0 | 50,120,494,690 | 12.7% | ||
mermaidvampire | 0 | 34,498,040,113 | 100% | ||
purefood | 0 | 0 | 12.7% | ||
woolfe19861008 | 0 | 2,103,576,697 | 100% | ||
rachaeldwatson | 0 | 1,756,819,315 | 12.7% | ||
dailychina | 0 | 5,839,531,708 | 100% | ||
dongfengman | 0 | 10,774,551,449 | 100% | ||
serenazz | 0 | 1,089,644,836 | 100% | ||
ethanlee | 0 | 4,506,791,371 | 100% | ||
tloes | 0 | 31,515,809 | 12.7% | ||
fabpoleo24 | 0 | 623,260,509 | 100% | ||
onepercentbetter | 0 | 15,659,774,933 | 10% | ||
carlos2115 | 0 | 461,890,272 | 100% | ||
fanso | 0 | 1,397,361,616 | 100% | ||
yameen | 0 | 3,514,040,988 | 20% | ||
atego | 0 | 43,147,688,162 | 50% | ||
lilypang22 | 0 | 1,260,887,529 | 100% | ||
moal | 0 | 45,325,271,297 | 100% | ||
wdwmemesnzapps | 0 | 0 | 12.7% | ||
artmom | 0 | 16,704,668,642 | 100% | ||
garrettwallace | 0 | 7,984,578,291 | 100% | ||
payroll | 0 | 13,067,622,916 | 10% | ||
andrewma | 0 | 5,239,720,751 | 20% | ||
steemitvip | 0 | 519,673,166 | 100% | ||
sweet-jenny8 | 0 | 20,733,512,961 | 100% | ||
myskye | 0 | 14,373,882,164 | 100% | ||
alpdurm | 0 | 95,693,980 | 30% | ||
merlion | 0 | 3,250,852,067 | 10% | ||
digital.mine | 0 | 118,658,790,699 | 1% | ||
chineselaw | 0 | 2,751,127,329 | 100% | ||
laiyuehta | 0 | 4,548,864,032 | 100% | ||
turtlegraphics | 0 | 2,353,417,009 | 100% | ||
glory7 | 0 | 326,378,647,068 | 100% | ||
pavanjr | 0 | 254,046,639 | 100% | ||
dlike | 0 | 39,976,719,896 | 2.8% | ||
witnesstools | 0 | 6,757,364,645 | 100% | ||
anti-bully | 0 | 261,334,111 | 100% | ||
ilovecoding | 0 | 6,308,246,456 | 100% | ||
sbi10 | 0 | 48,918,093,000 | 97.61% | ||
wherein | 0 | 7,128,831,713,032 | 18% | ||
steemfuckeos | 0 | 3,055,717,643 | 100% | ||
edgarare1 | 0 | 200,995,627,102 | 100% | ||
samsemilia7 | 0 | 2,558,960,800 | 12.7% | ||
primeradue | 0 | 1,740,423,426 | 12.7% | ||
ctime | 0 | 643,723,570,599 | 10% | ||
skymin | 0 | 50,706,023,694 | 50% | ||
hungrybear | 0 | 256,498,452 | 10% | ||
lolasophiedanton | 0 | 308,012,418 | 12.7% | ||
yogaworld | 0 | 170,980,505,327 | 100% | ||
rocketpower | 0 | 355,397,810 | 15% | ||
rodrook | 0 | 3,517,145,937 | 100% | ||
plankton.token | 0 | 59,984,309,159 | 75% | ||
blockcleaner | 0 | 18,630,868,730 | 100% | ||
steem.leo | 0 | 16,136,739,527 | 12.7% | ||
cplusplus | 0 | 6,228,897,240 | 100% | ||
leo.voter | 0 | 1,218,142,658 | 12.7% | ||
chrono.leo | 0 | 0 | 6.35% | ||
justsoso | 0 | 1,601,103,980 | 100% | ||
perrymine | 0 | 5,907,942,902 | 12% | ||
sbi-tokens | 0 | 671,352,468 | 1.76% | ||
maxuvd | 0 | 12,122,263,799 | 12.7% | ||
longhash | 0 | 1,441,546,994 | 100% | ||
llfestyle | 0 | 385,974,577 | 100% | ||
cnbuddy-reward | 0 | 31,407,528 | 0.05% | ||
unpopular | 0 | 59,404,005,999 | 100% | ||
photosnap | 0 | 885,302,224 | 20% | ||
lucky-guy | 0 | 2,149,355,793 | 100% | ||
sexybeach | 0 | 6,242,652,325 | 100% | ||
suckmydick | 0 | 3,139,811,717 | 100% | ||
chromebook | 0 | 3,073,555,638 | 100% | ||
successgr | 0 | 211,411,187,027 | 3% | ||
ericandryan | 0 | 11,357,010,392 | 100% | ||
lovequeen | 0 | 22,781,450,028 | 100% | ||
kjinhyun | 0 | 94,016,124,207 | 50% | ||
dev.supporters | 0 | 130,218,698,981 | 10% | ||
steemgoon | 0 | 2,119,682,661 | 20% | ||
goonz | 0 | 1,063,832,192 | 30% | ||
sometacos | 0 | 1,486,311,230 | 20% | ||
beargame | 0 | 22,843,363,782 | 5% | ||
hive-156383 | 0 | 3,130,789,501 | 50% | ||
justyy222 | 0 | 3,078,614,668 | 100% | ||
vwatata | 0 | 892,987,439 | 100% | ||
juddsmith079 | 0 | 196,639,861,751 | 40% | ||
denzelwash | 0 | 1,229,513,041 | 100% | ||
yuyusong | 0 | 9,625,492,513 | 100% | ||
rishihrutu | 0 | 67,407,941,599 | 50% |
η»θ‘ιΏζζζ₯δΊπ
post_id | 86,666,984 |
---|---|
author | annepink |
permlink | qdc8fg |
category | witness-category |
json_metadata | {"app":"steemcn\/0.1"} |
created | 2020-07-12 03:59:45 |
last_update | 2020-07-12 03:59:45 |
depth | 1 |
children | 1 |
net_rshares | 216,254,085,383 |
last_payout | 2020-07-19 03:59:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.040 SBD |
curator_payout_value | 0.041 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 8 |
author_reputation | 160,119,580,804,298 |
root_title | "Leetcode Biweekly Contest 30" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
justyy | 0 | 215,127,606,475 | 1% | ||
happyukgo | 0 | 146,531,019 | 1% | ||
nokeh | 0 | 0 | 1% | ||
robinlee | 0 | 0 | 1% | ||
rainyapril | 0 | 0 | 1% | ||
al2ping | 0 | 0 | 1% | ||
kangnajiang | 0 | 0 | 1% | ||
kikima | 0 | 0 | 1% | ||
geass | 0 | 0 | 1% | ||
superbing | 0 | 0 | 1% | ||
dailyfortune | 0 | 0 | 1% | ||
dailystats | 0 | 1,731,762 | 1% | ||
jianan | 0 | 472,174,482 | 1% | ||
daxiang | 0 | 0 | 1% | ||
anxin | 0 | 0 | 1% | ||
moobear | 0 | 0 | 1% | ||
nean | 0 | 0 | 1% | ||
foodielifestyle | 0 | 0 | 1% | ||
woolfe19861008 | 0 | 0 | 1% | ||
dailychina | 0 | 10,000,451 | 1% | ||
vincenthan | 0 | 0 | 1% | ||
yuxuan | 0 | 0 | 1% | ||
dongfengman | 0 | 60,681,036 | 1% | ||
serenazz | 0 | 0 | 1% | ||
yedda | 0 | 0 | 1% | ||
zasilla | 0 | 0 | 1% | ||
aaronstar | 0 | 0 | 1% | ||
ethanlee | 0 | 0 | 1% | ||
twinsnicole | 0 | 0 | 1% | ||
deepthinking | 0 | 0 | 1% | ||
gogoabc | 0 | 0 | 1% | ||
fanso | 0 | 0 | 1% | ||
lilypang22 | 0 | 0 | 1% | ||
lilyan | 0 | 0 | 1% | ||
zens | 0 | 0 | 1% | ||
steemitvip | 0 | 0 | 1% | ||
regals | 0 | 0 | 1% | ||
baymaxos | 0 | 0 | 1% | ||
joelone | 0 | 0 | 1% | ||
sweet-jenny8 | 0 | 161,259,003 | 1% | ||
atinna | 0 | 0 | 1% | ||
ffbank | 0 | 0 | 1% | ||
weicomenew | 0 | 0 | 1% | ||
laiyuehta | 0 | 0 | 1% | ||
turtlegraphics | 0 | 0 | 1% | ||
witnesstools | 0 | 19,275,277 | 1% | ||
ilovecoding | 0 | 13,988,745 | 1% | ||
steemfuckeos | 0 | 0 | 1% | ||
blockcleaner | 0 | 147,937,344 | 1% | ||
cplusplus | 0 | 13,095,579 | 1% | ||
justsoso | 0 | 0 | 1% | ||
longhash | 0 | 0 | 1% | ||
cnlifes | 0 | 0 | 1% | ||
cnfish | 0 | 0 | 1% | ||
llfestyle | 0 | 0 | 1% | ||
erlcet | 0 | 0 | 1% | ||
steeemmonsters | 0 | 0 | 1% | ||
maiydue | 0 | 0 | 1% | ||
wongshiylng | 0 | 0 | 1% | ||
deepcrypti8 | 0 | 0 | 1% | ||
myiord1992 | 0 | 0 | 1% | ||
wilhb82 | 0 | 0 | 1% | ||
leodec | 0 | 0 | 1% | ||
splinterislands | 0 | 0 | 1% | ||
keivinzhang | 0 | 0 | 1% | ||
sexybeach | 0 | 14,125,711 | 1% | ||
suckmydick | 0 | 0 | 1% | ||
chromebook | 0 | 0 | 1% | ||
ericandryan | 0 | 65,678,499 | 1% | ||
justyy222 | 0 | 0 | 1% |
ζθ°’οΌεθ΅γ
post_id | 86,670,282 |
---|---|
author | justyy |
permlink | qdcqav |
category | witness-category |
json_metadata | {"app":"steemit\/0.2"} |
created | 2020-07-12 10:25:45 |
last_update | 2020-07-12 10:25:45 |
depth | 2 |
children | 0 |
net_rshares | 294,525,034 |
last_payout | 2020-07-19 10:25:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 6 |
author_reputation | 2,062,739,781,884,297 |
root_title | "Leetcode Biweekly Contest 30" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
curbot | 0 | 294,525,034 | 100% |