This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def solver(array): | |
local_max_indexes =[] | |
local_max_indexes.append(0) | |
left_max = local_max_indexes[0] | |
last_ex_ind = [0]; | |
for i in xrange(1, len(array) - 1): | |
#print array[i-1], array[i], array[i+1] | |
if(array[i] > array[i-1] and array[i] > array[i+1]): | |
if(array[i] >= array[left_max]): | |
local_max_indexes.append(i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.VisualBasic.FileIO; | |
using System.Diagnostics; | |
namespace ReaderComparer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io; | |
use std::io::Write; | |
use std::io::BufReader; | |
use std::io::BufRead; | |
use std::fs; | |
use std::fs::File; | |
static LOG_NAME: &'static str = "log.txt"; | |
fn include_file(file_name: &String) -> bool{ |