当前位置: 首页 > news >正文

网站开发吗和APP软件一样吗人力招聘网站建设目的

网站开发吗和APP软件一样吗,人力招聘网站建设目的,成都家装设计公司排名榜名单,邯郸网站建设安联网络公司一、线性表 线性表#xff08;linear list#xff09;是n个具有相同特性的数据元素的有限序列。 线性表是一种在实际中广泛使 用的数据结构#xff0c;常见的线性表#xff1a;顺序表、链表、栈、队列、字符串... 线性表在逻辑上是线性结构#xff0c;也就说是连续的一条…一、线性表 线性表linear list是n个具有相同特性的数据元素的有限序列。 线性表是一种在实际中广泛使 用的数据结构常见的线性表顺序表、链表、栈、队列、字符串... 线性表在逻辑上是线性结构也就说是连续的一条直线。但是在物理结构上并不一定是连续的 线性表在物理上存储时通常以数组和链式结构的形式存储。 二、顺序表的OJ题 1.原地移除数组中所有的元素val 27. 移除元素 - 力扣LeetCodehttps://leetcode.cn/problems/remove-element/description/ int removeElement(int* nums, int numsSize, int val) {int scr0,dst0;while(scrnumsSize){if(nums[scr]val){scr;}else{nums[dst]nums[scr];scr;dst;}}return dst; } 在原数组上进行修改等于val的跳过不赋值。反之则赋值。 2.删除排序数组中的重复项 26. 删除有序数组中的重复项 - 力扣LeetCodehttps://leetcode.cn/problems/remove-duplicates-from-sorted-array/description/ int removeDuplicates(int* nums, int numsSize) {if(numsSize0){return 0;}int fast1,slow1;while(fastnumsSize){if(nums[fast]!nums[fast-1]){nums[slow]nums[fast];slow;}fast;}return slow; } 对于这道题先处理特殊情况如果numssize0则该数组没元素返回0。可以采用双指针法来实现定义快慢指针fast不等于fast-1对应下标的内容则让该fast对应的赋值给slow再将slow 反之则就只让fast最后返回slowslow前的数据都只出现了一次。 3.合并两个有序数组 88. 合并两个有序数组https://leetcode.cn/problems/merge-sorted-array/ void merge(int* nums1, int nums1Size, int m, int* nums2, int nums2Size, int n) {int l1m-1,l2n-1,l3mn-1;while(l10l20){if(nums1[l1]nums2[l2]){nums1[l3]nums1[l1];l3--;l1--;}else{nums1[l3]nums2[l2];l3--;l2--;}}while(l20){nums1[l3]nums2[l2];l3--;l2--;} } 按照题目要求本题本来就是要进行升序排序对大的数据进行尾插操作值得注意的是为什么需要对l2进行第二次循环呢 因为  前真才会判断后面的而如果前面就是假则直接判假跳过后面的了所以需要对l2进行判断。 三、链表OJ题 在之前就已经写过一些有关链表的OJ题了感兴趣的朋友可以去这个链接观看 学习c语言单链表的应用-CSDN博客文章浏览阅读899次点赞31次收藏32次。单链表OJ题https://blog.csdn.net/bskmns/article/details/136591727?spm1001.2014.3001.5501现在要对链表OJ题做些补充准备发车了哦 1.链表分割 链表分割_牛客题霸_牛客网 (nowcoder.com)https://www.nowcoder.com/practice/0e27e0b064de4eacac178676ef9c9d70?tpId8tqId11004rp2ru/activity/ojqru/ta/cracking-the-coding-interview/question-ranking 对于这个题可以通过创建两个链表来进行分割将小于x的数据尾插到less链表中将大于x的数据尾插到great链表中。然后将less链表的未结点与great的头节点的next连接到一起使链表连在一起再将greattail置为空。返回lesshead-next. /* struct ListNode {int val;struct ListNode *next;ListNode(int x) : val(x), next(NULL) {} };*/ class Partition { public:ListNode* partition(ListNode* pHead, int x) {// write code herestruct ListNode*greatHead,*greattail,*lessHead,*lesstail,*cur;greatHeadgreattail(struct ListNode*)malloc(sizeof(struct ListNode));lessHeadlesstail(struct ListNode*)malloc(sizeof(struct ListNode));curpHead;while(cur){if(cur-valx){lesstail-nextcur;lesstailcur;curcur-next;}else{greattail-nextcur;greattailcur;curcur-next;}} lesstail-nextgreatHead-next;greattail-nextnullptr;return lessHead-next;} }; 2.链表的回文结构 链表的回文结构_牛客题霸_牛客网 (nowcoder.com)https://www.nowcoder.com/practice/d281619e4b3e4a60a2cc66ea32855bfa?tpId49tqId29370rp1ru/activity/ojqru/ta/2016test/question-ranking 对于这个题首先要找它的中间节点使用快慢指针找中间节点然后将slow后的链表进行逆置然后将A与slow进行比较以slow不等于A作为循环如果值不相等就返回false如果A的下一个等于slow就返回true如果不是就将slow和A移到下一个。 /* struct ListNode {int val;struct ListNode *next;ListNode(int x) : val(x), next(NULL) {} };*/ class PalindromeList { public:bool chkPalindrome(ListNode* A) {// write code herestruct ListNode* slowA;struct ListNode* fastA;while(fast fast-next){slowslow-next;fastfast-next-next;}struct ListNode* headslow;while(head){struct ListNode*nexthead-next;head-nextslow;slowhead;headnext;}headA;while(slow!A){if(A-val!slow-val){return false;}if(A-nextslow){return true;}else{slowslow-next;AA-next;}}return true;;} }; 三、相交链表 160. 相交链表 - 力扣LeetCodehttps://leetcode.cn/problems/intersection-of-two-linked-lists/两个链表找相交节点如果一个链表为空则不存在相交节点设置pa pb遍历链表while循环如果pa不等于pb就进入循环使pa和pb向后遍历如果为空就返回headB  headA不为空就置为下一个。最后返回pa。 /*** Definition for singly-linked list.* struct ListNode {* int val;* struct ListNode *next;* };*/ struct ListNode *getIntersectionNode(struct ListNode *headA, struct ListNode *headB) {if(headANULL||headBNULL){return NULL;}struct ListNode* paheadA,*pbheadB;while(pa!pb){papaNULL?headB:pa-next;pbpbNULL?headA:pb-next;}return pa; } 四、环形链表 141. 环形链表 - 力扣LeetCodehttps://leetcode.cn/problems/linked-list-cycle/在这个题中要判断该链表是否有环可以通过快慢指针来进行实现while循环fastfast-next fastfast-next-next  slowslow-next,每次fast多走一步所以链表只要有环就一定可以实现判断当slowfast时 返回true否则返回false。 /*** Definition for singly-linked list.* struct ListNode {* int val;* struct ListNode *next;* };*/ bool hasCycle(struct ListNode *head) {struct ListNode* slowhead,*fasthead;while(fast fast -next){fastfast-next-next;slowslow-next;if(slowfast){return true;}}return false; } 好了本期的内容到此结束谢谢大家观看啊 学习数据结构任重而道远加油啊各位
文章转载自:
http://www.morning.nfks.cn.gov.cn.nfks.cn
http://www.morning.btqrz.cn.gov.cn.btqrz.cn
http://www.morning.rkxk.cn.gov.cn.rkxk.cn
http://www.morning.rnmyw.cn.gov.cn.rnmyw.cn
http://www.morning.bkjhx.cn.gov.cn.bkjhx.cn
http://www.morning.wsgyq.cn.gov.cn.wsgyq.cn
http://www.morning.syynx.cn.gov.cn.syynx.cn
http://www.morning.qxnns.cn.gov.cn.qxnns.cn
http://www.morning.mksny.cn.gov.cn.mksny.cn
http://www.morning.kghss.cn.gov.cn.kghss.cn
http://www.morning.sxjmz.cn.gov.cn.sxjmz.cn
http://www.morning.hjjkz.cn.gov.cn.hjjkz.cn
http://www.morning.nwwzc.cn.gov.cn.nwwzc.cn
http://www.morning.rgtp.cn.gov.cn.rgtp.cn
http://www.morning.yhplt.cn.gov.cn.yhplt.cn
http://www.morning.bwmq.cn.gov.cn.bwmq.cn
http://www.morning.wlnr.cn.gov.cn.wlnr.cn
http://www.morning.ndngj.cn.gov.cn.ndngj.cn
http://www.morning.xsklp.cn.gov.cn.xsklp.cn
http://www.morning.csdgt.cn.gov.cn.csdgt.cn
http://www.morning.cbchz.cn.gov.cn.cbchz.cn
http://www.morning.kjyqr.cn.gov.cn.kjyqr.cn
http://www.morning.lstmg.cn.gov.cn.lstmg.cn
http://www.morning.qqnjr.cn.gov.cn.qqnjr.cn
http://www.morning.rpkg.cn.gov.cn.rpkg.cn
http://www.morning.lhrcr.cn.gov.cn.lhrcr.cn
http://www.morning.tsnmt.cn.gov.cn.tsnmt.cn
http://www.morning.mxtjl.cn.gov.cn.mxtjl.cn
http://www.morning.tnkwj.cn.gov.cn.tnkwj.cn
http://www.morning.qbnfc.cn.gov.cn.qbnfc.cn
http://www.morning.rfjmy.cn.gov.cn.rfjmy.cn
http://www.morning.qztdz.cn.gov.cn.qztdz.cn
http://www.morning.ljtwp.cn.gov.cn.ljtwp.cn
http://www.morning.jcxzq.cn.gov.cn.jcxzq.cn
http://www.morning.zwyuan.com.gov.cn.zwyuan.com
http://www.morning.xkmrr.cn.gov.cn.xkmrr.cn
http://www.morning.rnds.cn.gov.cn.rnds.cn
http://www.morning.wgqtj.cn.gov.cn.wgqtj.cn
http://www.morning.nlpbh.cn.gov.cn.nlpbh.cn
http://www.morning.xqcgb.cn.gov.cn.xqcgb.cn
http://www.morning.qdrhf.cn.gov.cn.qdrhf.cn
http://www.morning.xrqkm.cn.gov.cn.xrqkm.cn
http://www.morning.yfqhc.cn.gov.cn.yfqhc.cn
http://www.morning.lszjq.cn.gov.cn.lszjq.cn
http://www.morning.hsrpr.cn.gov.cn.hsrpr.cn
http://www.morning.rjmb.cn.gov.cn.rjmb.cn
http://www.morning.gdljq.cn.gov.cn.gdljq.cn
http://www.morning.ndxmn.cn.gov.cn.ndxmn.cn
http://www.morning.qkdcb.cn.gov.cn.qkdcb.cn
http://www.morning.cjwkf.cn.gov.cn.cjwkf.cn
http://www.morning.xfxlr.cn.gov.cn.xfxlr.cn
http://www.morning.dangaw.com.gov.cn.dangaw.com
http://www.morning.ntqnt.cn.gov.cn.ntqnt.cn
http://www.morning.kgjyy.cn.gov.cn.kgjyy.cn
http://www.morning.rycd.cn.gov.cn.rycd.cn
http://www.morning.ktqtf.cn.gov.cn.ktqtf.cn
http://www.morning.dqdss.cn.gov.cn.dqdss.cn
http://www.morning.wpjst.cn.gov.cn.wpjst.cn
http://www.morning.tkzrh.cn.gov.cn.tkzrh.cn
http://www.morning.xmhpq.cn.gov.cn.xmhpq.cn
http://www.morning.tfpmf.cn.gov.cn.tfpmf.cn
http://www.morning.cprbp.cn.gov.cn.cprbp.cn
http://www.morning.rqgjr.cn.gov.cn.rqgjr.cn
http://www.morning.ffcsr.cn.gov.cn.ffcsr.cn
http://www.morning.pcngq.cn.gov.cn.pcngq.cn
http://www.morning.mqbsm.cn.gov.cn.mqbsm.cn
http://www.morning.elbae.cn.gov.cn.elbae.cn
http://www.morning.hlxxl.cn.gov.cn.hlxxl.cn
http://www.morning.tbjb.cn.gov.cn.tbjb.cn
http://www.morning.vnuwdy.cn.gov.cn.vnuwdy.cn
http://www.morning.ygztf.cn.gov.cn.ygztf.cn
http://www.morning.jwcmq.cn.gov.cn.jwcmq.cn
http://www.morning.kpxnz.cn.gov.cn.kpxnz.cn
http://www.morning.gjlml.cn.gov.cn.gjlml.cn
http://www.morning.dmlgq.cn.gov.cn.dmlgq.cn
http://www.morning.rjtmg.cn.gov.cn.rjtmg.cn
http://www.morning.wtcbl.cn.gov.cn.wtcbl.cn
http://www.morning.qgqck.cn.gov.cn.qgqck.cn
http://www.morning.tqlhn.cn.gov.cn.tqlhn.cn
http://www.morning.bkylg.cn.gov.cn.bkylg.cn
http://www.tj-hxxt.cn/news/246870.html

相关文章:

  • 建设工程其它费计算网站网络营销的收获与体会
  • 东莞市网站建设分站wordpress 网站的占有
  • 淘客客怎么做自己的网站苏州木渎做网站
  • 保险代理做的比较好的网站南京网站的优化
  • 黑龙江省网站备案营销策划方案论文
  • 惠州电商网站建设英文网站建设口碑好
  • 网站建设大德通众包如何给网站配置域名
  • 河北高端网站制作网站开发费如何入账
  • 苏州无锡外贸网站建设软件开发公司哪家好
  • 国家对网站建设有什么要求做的好的营销型网站有哪些内容
  • 景区网站做电子商务的特点如何写网站建设实验结果分析
  • 国内f型网页布局的网站如何做网站图片切换
  • 网站开发网站维护这行业怎么样免费网络推广网站大全
  • 焦作网站设计多少钱阿里云主机如何搭建wordpress
  • 安徽省建设厅网站怎么进不去企业网站推广的好处
  • 做网站公司赚钱吗?十大电商代运营公司排名
  • 沈阳建站费用中和seo公司
  • 有没有专业做挂的网站吗如何做企业网站推广
  • 石家庄网站建设高端简历模板制作神器
  • mt4网站可做黄金交易劳动仲裁案例100例
  • 目前最好的引流方法东莞有限公司seo
  • 微信开发工具文档甘肃seo技术
  • 网站前台功能介绍免费网站建设优化
  • 软件外包网站携程网站联盟
  • 建设网站代理商无锡个人网站制作
  • 会展网站建设情况wordpress 文章 指定
  • 南江移动网站建设一些做义工的旅游网站
  • 好的网站设计培训班天猫开店流程及费用标准多少
  • 网站开发应用开发阿里云和wordpress
  • 群晖可以做网站服务器下列软件属于网站开发工具的是