Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write your solution in this file.
- *
- * You can execute and test your answer by either pressing 'Try Answer' in the
- * side panel, or by running `node test_answer.js <test_case_path>` on the
- * command line.
- * For example:
- * node test_answer.js inputs/american_football_formation.json
- *
- * You can organize your code as you wish (eg, use auxiliary files) as long as
- * `test_answer.js` produces the expected output.
- */
- var PNGReader = require('png.js');
- module.exports = {
- ///home/candidate/candidate_files/js/inputs/american_football_formation.json
- /**
- * Implement your solution here.
- *
- * @param picture - The file path of the picture
- * @return The number of objects in picture
- */
- count_objects_in_picture: function(picture) {
- var 2d_array = this.intialize_grid(picture);
- return -1;
- },
- intialize_grid: function(pic) {
- fs.readFile('')
- }
- dfs(pic, x, y) {
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement