zoukankan      html  css  js  c++  java
  • Array(2)

    因为以后的很多有关数组的面试题都离不开增删改查,所以基本的逻辑语句是要会的比如插入的时候
    first to create a new space for inserting element.
    then shift all elments one index from that index to the right

    we first need to shift all the elements from that index onwards one position to the right.
    We do that by shifting each element one index to the right.

    • make sense (if it doesn't make sense to keep it in the inventory anymore.)
    • inventory
    • given index :at any given index inside the Array.
    • kept track of: as we've kept track of it in our length variable
    • length variable
    • past ( past the current last element.)
      All we need to do for inserting an element at the end is to assign the new element to one index past the current last element.
    • pretty much the same
      This is pretty much the same as we've already seen.
    • capacity [kəˈpæsəti]
    • slots
    • incremented
    • shift it to the right by 2 index
    • be proportional to
      to be directly/inversely proportional to sth 与某事物成正比╱反比
    • We do that by shifting each element one index to the right.
    • onwards
    • onwards from that index onwards one position
    • proceed
    • potentially
    • required index
    • be careful of:The main thing to be careful of is remembering that array.length gives you the total capacity of the Array.
    • get around
    • somehow :Can we use this information somehow to solve the problem?
    • intertwine
  • 相关阅读:
    hdu 母牛的故事 递推题
    并查集
    又是矩阵 Uva上的一道 经典题目
    poj 3233 矩阵幂取模
    electronvue + elementui构建桌面应用
    主板cmos 映射表
    高级配置与电源接口 acpi 简介
    警告不能读取 AppletViewer 属性文件的解决方法
    高级 Synth(转载)
    vbs 查看硬件信息代码
  • 原文地址:https://www.cnblogs.com/ldphoebe/p/14865895.html
Copyright © 2011-2022 走看看