<dfn id="w48us"></dfn><ul id="w48us"></ul>
  • <ul id="w48us"></ul>
  • <del id="w48us"></del>
    <ul id="w48us"></ul>
  • 亞馬遜校招筆試題

    時間:2021-01-14 17:04:43 筆試題目 我要投稿

    亞馬遜2013校招筆試題

      亞馬遜校招筆試題,就2個題,時間2.5小時

    亞馬遜2013校招筆試題

      Question 1 / 2

      Question:

      Given an array with positive integers and another integer for example{7 2 4} 9, you are required to generate an equation, by inserting operator add ("+") and minus ("-") among the array . The left side of equation are consist of the array and the right side of equation is the integer. here the result is 7-2+4=9

      Rules:

      Don't include any space in the generated equation.

      In case there is no way to create the equation, please output "Invalid". For example {1 1} 10, output is "Invalid"

      The length of the integer array is from 1 to 15( include 1 and 15). If the length is 1, for example the input {7} 7, the output is 7=7

      There is no operator "+" or "-" in front of the first number:

      Don't change the order of the numbers. For example: {7 2 4} 9. 7-2+4=9 is correct answer, 4-2+7=9 is wrong answer.

      There could be multiple input, meaning your function could be called multiple times. Do remember print a new line after the call.

      Sample Input and Output:

      Input:

      1 2 3 4 10

      1 2 3 4 5

      Output:

      1+2+3+4=10

      Invalid

      Question 2 / 2

      Question:

      There is a 5*5 matrix; the elements in this matrix are different integer from 0 to 24. The elements in this matrix are disordered. 0 is a special element. The upper element, under element, left element and right element of 0 can be exchanged with 0. Such exchange operations are named as ‘U’, ‘D’, ‘L’ and ‘R’.

      Operation "U" means 0 exchanged with its upper element.

      Operation "D" means 0 exchanged with its under element.

      Operation "L" means 0 exchanged with its left element.

      Operation "R" means 0 exchanged with its right element.

      For example, the original matrix is

      [20, 18, 7, 19, 10

      24, 4, 15, 11, 9

      13, 0, 22, 12, 14

      23, 16, 1, 2, 5

      21, 17, 8, 3, 6]

      With the operation sequence “URRDDL”, the new matrix will be

      [20, 18, 7, 19, 10

      24, 15, 11, 12, 9

      13, 4, 22, 2, 14

      23, 16, 0, 1, 5

      21, 17, 8, 3, 6]

      Now, we know the original matrix, the matrix after the operations and all the operations made on the original matrix. Please provide the correct sequence for the operations.

      The input will be the original matrix, the target matrix and an operation sequence with wrong order.

      If there is a correct sequence for this input, then print the correct sequence. Otherwise, print “None”.

      Rules and example:

      The elements in the original matrix are different.

      The elements in the original matrix are random ordered.

      The max lenght of operatoins is 15.

      If "0" is already on the boundary, it is not possible to do further movement. for example, if 0 is in the top row, then there is no more "U".

      The input will be the original matrix, the target matrix and an operation sequence with wrong order.

      The output will be a correct operation sequence.

      In case there is no way to get the target matrix with the input operations, please output “None”

      Don’t include any space in the generated operation sequence.

      For examples, the original matrix is


    【亞馬遜2013校招筆試題】相關文章:

    騰訊校招筆試題01-16

    騰訊2016校招筆試題10-03

    網(wǎng)易2015校招筆試題09-09

    騰訊校招筆試題目05-02

    三星校招筆試題目09-05

    阿里巴巴2016校招筆試題09-14

    2015阿里校招運營專員筆試題08-21

    京東2015應屆生校招筆試題09-14

    阿里校招視覺設計師筆試題09-11

    58集團2017校招筆試題06-12

    主站蜘蛛池模板: 91精品国产91久久久久福利| 国产精品高清在线观看| 欧美高清在线精品一区| 亚洲国产成人精品91久久久| 精品国产福利久久久| 亚洲精品一品区二品区三品区| 国产成人AV无码精品| 成人区精品一区二区不卡| 在线精品国产一区二区三区| 国产精品免费在线播放| 国产亚洲福利精品一区| 久久99热只有频精品8| 香港aa三级久久三级老师2021国产三级精品三级在 | 精品国产乱码久久久久久1区2区| 国产精品久久国产精品99盘 | 亚洲一区二区三区国产精品| 99久久免费只有精品国产| 97精品国产91久久久久久| 亚洲AV永久纯肉无码精品动漫| 免费人欧美日韩在线精品| 精品国产91久久久久久久a| 亚洲国产精品不卡在线电影| 久久久国产乱子伦精品作者| 亚洲精品无码激情AV| 久久久精品久久久久久| 国产免费伦精品一区二区三区| 欧美精品国产日韩综合在线| 国产精品1024香蕉在线观看| 国产精品国色综合久久| 精品一区二区三区波多野结衣 | 国产亚洲精品自在久久| 无码人妻精品一区二区| 亚洲精品天堂成人片?V在线播放| 久久精品免费大片国产大片| 国产在线国偷精品免费看| 国产区精品福利在线观看精品| 国产精品国产三级在线高清观看| 国产精品女同一区二区久久| 国产在线国偷精品免费看| 国产在线观看一区精品| 久久久久一级精品亚洲国产成人综合AV区 |