2024年12月

Cursor AI

Cursor AI:从新手到专业工程师都适用的AI 编辑器,该怎么使用?

写程式的过程,对不同程度的人来说,挑战各有不同,举例来说:
新手可能在语法上卡关,花大量时间找出简单错误,甚至不知道该如何开始。
工程师追求的是高效开发,减少重复性工作,避免琐碎的错误拖慢进度。
产品设计师和产品经理则希望可以快速验证想法,但程式语法对他们来说门槛较高。
传统的程式码编辑器已经有一定的功能,但面对这些问题,仍有许多进步空间。而Cursor 这款结合AI 的程式码编辑器,正是为了解决这些痛点而诞生,让写程式变得更高效、更直觉,也更容易学习。
本篇文章将会介绍Cursor 背后的创办动机、使用方式,并与其他编辑器进行比较,说明它的局限与最佳使用场景,还有未来AI 编辑器的发展趋势,一起看下去吧!

Cursor AI:从新手到专业工程师都适用的AI 编辑器,该怎么使用? 阅读更多 ”

软体工程师, ,

[Leetcode] 0057. Insert Interval

You are given an array of non-overlapping intervals intervals where intervals[i] = [starti, endi] represent the start and the end of the ith interval and intervals is sorted in ascending order by starti. You are also given an interval newInterval = [start, end] that represents the start and end of another interval.

Insert newInterval into intervals such that intervals is still sorted in ascending order by starti and intervals still does not have any overlapping intervals (merge overlapping intervals if necessary).

Return intervals after the insertion.

Note that you don't need to modify intervals in-place. You can make a new array and return it.

[Leetcode] 0057. Insert Interval 阅读更多 ”

Leetcode, 技术文章

[Leetcode] 0269. Alien Dictionary

There is a new alien language that uses the English alphabet. However, the order of the letters is unknown to you.

You are given a list of strings words from the alien language's dictionary. Now it is claimed that the strings in words are sorted lexicographically by the rules of this new language.

If this claim is incorrect, and the given arrangement of string in words cannot correspond to any order of letters, return “”.

Otherwise, return a string of the unique letters in the new alien language sorted in lexicographically increasing order by the new language's rules. If there are multiple solutions, return any of them.

[Leetcode] 0269. Alien Dictionary 阅读更多 ”

Leetcode, 技术文章

[Leetcode] 0305. Number of Islands II

You are given an empty 2D binary grid grid of size mx n. The grid represents a map where 0's represent water and 1's represent land. Initially, all the cells of grid are water cells (ie, all the cells are 0's).

We may perform an add land operation which turns the water at position into a land. You are given an array positions where positions[i] = [ri, ci] is the position (ri, ci) at which we should operate the ith operation .

Return an array of integers answer where answer[i] is the number of islands after turning the cell (ri, ci) into a land.

An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.

[Leetcode] 0305. Number of Islands II 阅读更多 ”

Leetcode, 技术文章
zh_CN简体中文