Skip to content

Instantly share code, notes, and snippets.

View CosmicPangolin's full-sized avatar
🎯
Focusing

Wes CosmicPangolin

🎯
Focusing
View GitHub Profile
fn main() {
fn binary_gap_length(mut x: u32) -> u32 {
let instant = Instant::now();
let mut index:u32 = 0;
let mut gap_length:u32 = 0;
x = x >> x.trailing_zeros();
while x != 0 {
if x & 1 == 1 {
import 'dart:math' as math;
void main() {
double volOf2DHypersphere = volumeOfHypersphere(2, 1000);
}
double volumeOfHypersphere(int dimensions, int simCount) {
int withinCircleCount = 0;
List<List<double>> pointArray = [];