Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. /**
  2. * Write your solution in this file.
  3. *
  4. * You can execute and test your answer by either pressing 'Try Answer' in the
  5. * side panel, or by running `node test_answer.js <test_case_path>` on the
  6. * command line.
  7. * For example:
  8. * node test_answer.js inputs/american_football_formation.json
  9. *
  10. * You can organize your code as you wish (eg, use auxiliary files) as long as
  11. * `test_answer.js` produces the expected output.
  12. */
  13. var PNGReader = require('png.js');
  14.  
  15. module.exports = {
  16. ///home/candidate/candidate_files/js/inputs/american_football_formation.json
  17. /**
  18. * Implement your solution here.
  19. *
  20. * @param picture - The file path of the picture
  21. * @return The number of objects in picture
  22. */
  23. count_objects_in_picture: function(picture) {
  24. var 2d_array = this.intialize_grid(picture);
  25.  
  26.  
  27.  
  28. return -1;
  29. },
  30.  
  31. intialize_grid: function(pic) {
  32. fs.readFile('')
  33. }
  34.  
  35. dfs(pic, x, y) {
  36.  
  37. }
  38. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement