Drag from an existing node to add a new node or link. Click to select/deselect nodes/links. Hit the DELETE key to remove the selected node or link. Drag to pan. Scroll to zoom.
Built with D3.js.
package search.pairs; | |
/* Head ends here */ | |
import java.util.HashSet; | |
import java.util.Scanner; | |
import java.util.Set; | |
public class Solution { | |
import sys | |
import math | |
def numberOfOnes(n): | |
mask = 1 | |
bits = n.bit_length() | |
if n < 0: | |
bits +=1 | |
count = 0 | |
for i in range(0, bits): | |
count += n & mask |
''' | |
Created on May 8, 2013 | |
@author: Victor J. Reventos | |
Copies the preferences from the src workspace to the dest workspace. | |
If the dest workspace doesn't exist it will be created. | |
Enjoy! | |
''' |
Drag from an existing node to add a new node or link. Click to select/deselect nodes/links. Hit the DELETE key to remove the selected node or link. Drag to pan. Scroll to zoom.
Built with D3.js.
#include <stdlib.h> | |
#include <string.h> | |
#include "msp430.h" | |
unsigned int CV = 0; | |
unsigned int DV = 0; | |
char RO = '0'; | |
const double CRITICAL_OXYGEN_LEVEL = 1.5; | |
volatile double oxygenThreshold = 2; | |
volatile double oxygen = 15; // assign a value greater than 2 |
#include <stdlib.h> | |
#include <string.h> | |
#include "msp430.h" | |
#define TXD BIT2 | |
#define RXD BIT1 | |
unsigned int CV = 0; | |
unsigned int DV = 0; | |
unsigned int RO = 0; |
cmake_minimum_required(VERSION 2.8) | |
project( imageproc ) | |
find_package(OpenMP REQUIRED) | |
if(OPENMP_FOUND) | |
message(STATUS "Enabling OpenMP support") | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") | |
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") | |
else() |
package com.vjames19; | |
/** | |
* Created by vjames19 on 3/16/15. | |
*/ | |
public class LargestBlockOfOnes { | |
public static int[] largestBlockOfOnes(int[] a, int low, int sup) { | |
if (low > sup) { | |
return new int[] {-1, -1}; |
function y = HL(x) | |
x2 = x(x >= -60 & x <= 60); | |
y(find(x >= -60 & x <= 60))= exp(-1i *((2*pi)/30 * x2)); | |
y(find(x > 60 | x < -60)) = 0; | |
end |