今天來解YKL27(UVA11332):Summing Digits
Summing Digits
跟題目敘述的一樣f(n) = 1+2+3+4+5+6+7+...
原文題目Given the head of a linked list, remove the nth node from the end of the lis...
前言
本日進度:
[x] 6 題 general skills
[ ] 【成大資安社社課】WEB 2 - 看完
Writeup
第一題:ASCII Nu...
原文題目Given head, the head of a linked list, determine if the linked list has a cy...
題目
1310. XOR Queries of a Subarray難度: 中等偏易
題意
給定一整數陣列arr;給定一整數陣列的陣列queries,其中que...
在這道題目中,我們要判斷兩棵二元樹是否完全相同。兩棵二元樹被認為是相同的當且僅當它們的結構相同,且相同位置的節點具有相同的值。
題目:給定兩棵二元樹 p 和 q...