Skip to content

Instantly share code, notes, and snippets.

View tchnorider's full-sized avatar
⌨️

Laura L. tchnorider

⌨️
View GitHub Profile
@tchnorider
tchnorider / BadVersion.java
Last active February 7, 2023 20:29
Returns first bad version
public class BadVersion {
public int badOne = 1;
// AC
public int firstBadVersion(int n) {
int right = n;
int left = 1;
while(left < right) {
@debasishg
debasishg / gist:b4df1648d3f1776abdff
Last active July 27, 2024 14:46
another attempt to organize my ML readings ..
  1. Feature Learning
  1. Deep Learning
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active February 27, 2025 20:09
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@jbro-io
jbro-io / Apex: Standard Deviation Example
Last active August 28, 2019 14:21
A method for calculating standard deviations with Apex.
public class AdvancedMath
{
public static Double standardDeviation(Double[] numbers)
{
//determine the sum of the range of numbers
Double sum = 0;
for(Double d : numbers)
{
sum += d;
}
@urielaero
urielaero / reinas.c
Last active March 12, 2021 22:27
Sencilla solución de el problema de las 8 reinas usando recursividad (backtracking), con arrays dinámicos. (Este código solo imprime una solución)
#include <stdio.h>
#include <stdlib.h>
/*
Sencilla solución de el problema de las 8 reinas usando recursividad
(backtracking), con arrays dinámicos. (Este código solo imprime una solución)
*/
int *crearVec(int t);
void llenarPositivo(int *v,int t);
void reinas(int i,int *vec,int *puesto,int *diag2_1,int *diag1_2);
void imp(int *vec);