Results 1 to 2 of 2
  1. #1

    Default Kinsa ganahan mudiscuss sa solution ani nga problem? :D


    Actually this the final problem I needed to answer way back when I was still applying for this certain company. Nakahinumdom ra ko ani nya lately of out the blue out of dumot siguro kay atong tyma wa man ko kaanswer haha, time limit was 30 mins.

    I need to code this in Java, i know Java so algo or approach nalang jud kuwang.

    TEH PROBLEM:

    - naay 2D array of integers (any dimensions) maze ni siya
    - values only 1 or 0
    - if 1 kay wall, meaning d maigan (duh lol) if 0 kay pwede
    - naay random initial point (x y coordinate)
    - TO DO: return the least number of steps (1 step per move, moves kay up, down, left, right, NO diagonals) para makaguwas sa maze
    - definition sa "nakaguwas" kay naa ka sa edge sa 2D array for example myArray(0, x) or myArray(x, 0) bsta either sa 4 sides sa 2d array

    im thinking of backtracking, samot nag mabangga na sa wall, any thoughts guys? salamat

    this is purely for fun, or for the sake na nakaanswer kintahay ko after ko nila gireject (yes wa ko nadawat haha wa gud kaanswer! XD)

  2. #2

    Default Re: Kinsa ganahan mudiscuss sa solution ani nga problem? :D

    google dijkstra and A* algo

  3.    Advertisement

Similar Threads

 
  1. kinsa ganahan adto sa talaba farm..?
    By raved in forum Destinations
    Replies: 76
    Last Post: 12-10-2012, 01:47 PM
  2. knsay kabalo sa BRAND ani nga bass?
    By yarniwre in forum Music & Radio
    Replies: 11
    Last Post: 01-03-2010, 08:14 PM
  3. Kinsa graduate/studyante sa UC METC nga NIS SCHOLAR?
    By realjarley in forum Campus Talk
    Replies: 2
    Last Post: 12-26-2009, 09:42 PM
  4. Replies: 41
    Last Post: 12-22-2009, 03:17 PM
  5. Unsa inyo opinion ani nga Problem.
    By alexandra_isabel in forum General Discussions
    Replies: 29
    Last Post: 05-05-2009, 12:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top