Leetcode Hashmap
1. Two SumDescriptionGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Click to view full description Example 1: Input: nums = [2,7,11,15], target = 9 Output: [0,1] Example 2: Input: nums = [3,2,4], target = 6 Output: [1,2] SolutionIdea: 使用哈希表来存储 nums 中每个元素的 值 和它的...
Github Workflow
1. Create a New Issue Ensure the issue title is specific and meaningful Clearly describe the problem to solve or feature to implement 2. Create a New Branch Use the command lines automatically generated by Github to create and switch to the new branch Typical format:1git checkout -b feature/your-branch-name 3. Development Work on your new branch If anything goes wrong, reset to initial version:1git reset --hard HEAD 4. Save Changes Execute these commands in order:123git add .git commit...
初冬随笔
2024 年 11 月底,北京的干冷气息如约而至,熟悉中透着几分陌生。清晨的街头笼罩在一层薄薄的灰蓝色中,似乎还未完全苏醒,而地铁站却已是一片喧嚣。拥挤的车厢如潮水般涌动,一次次合上车门,将焦急的面孔和挤不上去的身影隔在两边。街道上,步履匆匆的人们裹着厚重的冬装,手捧热气腾腾的早餐,目光坚毅而略带倦意,像是在与这座城市默契地配合,又似乎被它无声地推着向前。这是我记忆里的北京,一个忙碌的现代都市,每个人都像钟表的齿轮,为了各自的生活轨迹拼命转动。 从澳洲结束了 24S2...


