zoukankan      html  css  js  c++  java
  • Pramp mock interview (4th practice): Matrix Spiral Print

    March 16, 2016

    Problem statement:
    Given a 2D array (matrix) named M, print all items of M in a spiral order, clockwise.
    For example:

    M  =  1   2   3   4   5
           6   7   8   9  10
          11  12  13  14  15
          16  17  18  19  20


    The clockwise spiral print is:  1 2 3 4 5 10 15 20 19 18 17 16 11 6 7 8 9 14 13 12

    Julia worked on solution using brute force solution. 

    https://gist.github.com/jianminchen/aa7a35df305b05f5d90a

    Evaluation from the mock interviewer:


  • 相关阅读:
    GridView中实现点击某行的任意位置就选中该行
    HtmlEncode、HtmlDecode、UrlEncode、UrlDecode
    Asp.net中从后台中如何获取html控件
    关于IE10出现LinkButton点击无效的解决方案
    【转】关于IE7 z-index问题完美解决方案
    【转】Asp.net中时间格式化的6种方法详细总结
    【转】asp.net Cookie值中文乱码问题解决方法
    asp.net中Cookie的用法【转】
    【转】ASP.NET Cookies简单应用 记住用户名和密码
    ASP.NET Cookie 概述【转】
  • 原文地址:https://www.cnblogs.com/juliachenOnSoftware/p/5297949.html
Copyright © 2011-2022 走看看