logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Merge k Sorted Lists

题目Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 思路K 路归并链表;注意:不能用 ListNode *cur 来记录当前的链表节点(因为这样的话无法修改数组中的链表),而是要直接在数组中修改链表,所以要用 index 记录要修

#leetcode#算法
游戏开发中的人工智能——以势函数实现移动

转载至阅读笔记-游戏开发中的人工智能-第5章-以势函数实现移动1. 概述    势函数属于物理学原理,我们主要使用势函数控制游戏里单位的行为。例如,我们可以使用势函数,建立成群结队的单位,仿真群体移动,处理追逐和闪躲,以及避开障碍物问题。我们专门研究的势函数叫做Lenard-Jones势函数。        物理学中,Lenard-Jones势能代表的是,分子间吸引和排斥的势

#游戏开发#人工智能
Distinct Subsequences

题目Given a string S anda string T,count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from the original string by deleting some (can

#leetcode#算法
Sort Colors

题目Given an array with n objectscolored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the integ

#leetcode
Flatten Binary Tree to Linked List

题目Given a binary tree, flatten it to a linked list in-place.For example,Given1/ \25/ \\346The flattened tree should look like:

Letter Combinations of a Phone Number

题目Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input:

#leetcode
First Missing Positive

题目Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm should run in O(n)time and uses consta

#leetcode#算法
游戏开发中的人工智能——以势函数实现移动

转载至阅读笔记-游戏开发中的人工智能-第5章-以势函数实现移动1. 概述    势函数属于物理学原理,我们主要使用势函数控制游戏里单位的行为。例如,我们可以使用势函数,建立成群结队的单位,仿真群体移动,处理追逐和闪躲,以及避开障碍物问题。我们专门研究的势函数叫做Lenard-Jones势函数。        物理学中,Lenard-Jones势能代表的是,分子间吸引和排斥的势

#游戏开发#人工智能
游戏开发中的人工智能——以势函数实现移动

转载至阅读笔记-游戏开发中的人工智能-第5章-以势函数实现移动1. 概述    势函数属于物理学原理,我们主要使用势函数控制游戏里单位的行为。例如,我们可以使用势函数,建立成群结队的单位,仿真群体移动,处理追逐和闪躲,以及避开障碍物问题。我们专门研究的势函数叫做Lenard-Jones势函数。        物理学中,Lenard-Jones势能代表的是,分子间吸引和排斥的势

#游戏开发#人工智能
    共 13 条
  • 1
  • 2
  • 请选择