圆圈和阵列 [英] Circles and arrays

查看:74
本文介绍了圆圈和阵列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好


我有这个算法问题与你分享::)


想象一下你有这样的二维数组:

Hi Guys

I have this algorithm problem to share with you: :)

Imagine you have two dimensional array like this:

展开 | 选择 < span class =codeDivider> | Wrap | 行号

推荐答案

这是游戏吗?我认为in_array()将非常有用。

但你必须手动循环外部数组
Is this for a game? I think in_array() will be very useful.
But you will hve to hand loop the outer array


@code green


感谢您的回复


是的in_array()我认为是有用的,但我的问题不在于使用手册:)它更多的是算法问题。你能详细说明你的手外环阵列吗?做法。我将非常感激。


Thanx Again
@code green
Thanks for reply

Yes in_array() will be useful I am sure, but my problem is not in using manual :) Its more of an algorithm issue. Could you elaborate on your "hand loop the outer array" approach. I would be very grateful.

Thanx Again



你能详细说明你的手循环外部阵列做法。
Could you elaborate on your "hand loop the outer array" approach.



我会去

I''ll have go

展开 | 选择 | Wrap | 行号


这篇关于圆圈和阵列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆