Programming VS Developing

I will put two codes. The problem is from the web page:

I was curious about how people code there. I could not be more scared after seeing things like this one:

or this one;

Well, the previous two are programmers, but they definitely are not developers. Developers at least try to do something like this;

import java.util.Scanner;

public class Solution {

	public static void main(String[] args) {
		Scanner in = new Scanner(;
                int freewayLenght = in.nextInt();
                int testCases = in.nextInt();
                Lane lane = new Lane(freewayLenght);
		for (int segment = 0; segment < freewayLenght; segment++) {
			lane.setWidth(segment, in.nextInt());
		for (int i = 0; i < testCases; i++) {
			int entry = in.nextInt();
			int exit = in.nextInt();
			System.out.println(lane.minimumLane(entry, exit));


class Lane{
	int laneWidth[];
	Lane(int laneLenght){
		laneWidth = new int[laneLenght];
	void setWidth(int segment, int width){
		laneWidth[segment] = width;
	int minimumLane (int entry, int exit){
		int minimum = 3;
		for(int i = entry; i <= exit && minimum > 1; i++){
			if(laneWidth[i] < minimum){
				minimum = laneWidth[i];
		return minimum;

Do someone see the difference? Can you read the first two? Do you know what they do just by looking at them? What are the entities of the world you are dealing with? Potatoes? In the difference is the answer of what is a programmer and what is a developer.   Read the problem and constrains here:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: