Linked list advanced
Swap Nodes in Pairs Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list’s nodes (i.e., only nodes themsel...
Swap Nodes in Pairs Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list’s nodes (i.e., only nodes themsel...
Linked List What is Linked List? Linked List is a linear data structure in which elements are not stored at a contiguous location, rather they are linked using pointers. Linked List forms a seri...
Squares of a Sorted Arrays Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. The ordinary method is to ...
What is Array? An array is a collection of the same type of data stored in a contiguous memory space. Note: Array’s subscripts start at 0. The array’s memory space is contiguous. Since th...
The question is following: This question can use a simple two-for loop + DFS to solve, it’s not the point I summarize today. The true thing I want to discuss is the Pass by value in Java. Here i...
Dear readers, have you ever found yourselves puzzled by the following: With the internet awash in a deluge of information, where false information runs rampant, how can one sift through the mountai...
2023年终感悟 2023,前半年在楚兴煎熬度日,继续读书的念头每日愈增,偶尔想到了辞职,但还是想着凑满3年工作经验,7月-10月到黄石磁湖高新休整,11月-12月中在远大独当一面,12月中至今在长飞又每日忙碌,回过头来看,忙碌或者说认真工作给我带来了什么?带来的只是【肉体上的煎熬】以及【心灵上的渴望逃离】,在楚兴时正好GPT横空出世,当时看了一篇博文,想的是先申请爱沙尼亚的塔尔图大学,各...
时间马上将要跨入公元纪年2023年1月1日,过往的记忆如同潮水般翻涌,时代的车轮也在滚滚向前,总感觉需要记录点什么,遂写此博文–以纪念生命中的22岁。 本篇博文将分为以下几个部分: 2022年总结 2023年展望 目前的状态 年中总结(2023年7月30日新增) 2023年中状态 2023年下半年目标 2023年年终复盘(2024年1月4日更新) 1.2...