Skip to content

Instantly share code, notes, and snippets.

View Zoha131's full-sized avatar
🎯
Hunting a Job

Md Abir Hasan Zoha Zoha131

🎯
Hunting a Job
View GitHub Profile
@Zoha131
Zoha131 / getMethod.c
Created September 7, 2016 07:09
From the lecture video and reference.cs50.net I have learnt to use get_string(void) this method but It don't work in cs50 IDE. Instead of get_string(void), GetString() method is working in my IDE.
#include <cs50.h>
#include <stdio.h>
int main(void){
printf("type char:");
printf("This is char %c\n\n", GetChar());
printf("type double:");
printf("This is double %f\n\n", GetDouble());
@Zoha131
Zoha131 / problem- 3
Last active September 22, 2016 13:08
MIT- 6.00.1x || week 2 || pset-2 || problem-3
annualInterestRate = 0.2
balance = 320000
# variable for Monthly Interest rate
mir = annualInterestRate / 12.0
pb = balance
#lower bound
lwb = balance /12
@Zoha131
Zoha131 / r_pyramid.c
Created February 26, 2017 18:27
Problems in code_marshal solutions.
/*
* =====================================================================================
*
* Filename: pyramid.c
*
* Description: code_marshal
*
* Version: 1.0
* Created: 02/13/2017 04:00:10 AM
* Revision: none
@Zoha131
Zoha131 / r_pyramid.c
Last active February 26, 2017 18:35
My code works fine with the sample inputs. But whenever I submit the code to code marshal, it gets unaccepted.
#include <stdlib.h>
#include <stdio.h>
int main()
{
int i, j, t, k,m,n;
scanf("%d", &t);
for(i=1; i<=t; i++)
@Zoha131
Zoha131 / G_Summing_Series.c
Last active March 23, 2017 17:02
Taking preparation for the take off contest.
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int main()
{
int t,i;
scanf("%d", &t);
#include <stdlib.h>
#include <stdio.h>
int main()
{
int t,i;
scanf("%d", &t);
for(i=1;i<=t;i++)
https://www.urionlinejudge.com.br/judge/en/problems/view/1001
https://www.urionlinejudge.com.br/judge/en/problems/view/1002
https://www.urionlinejudge.com.br/judge/en/problems/view/1003
https://www.urionlinejudge.com.br/judge/en/problems/view/1004
https://www.urionlinejudge.com.br/judge/en/problems/view/1005
https://www.urionlinejudge.com.br/judge/en/problems/view/1006
https://www.urionlinejudge.com.br/judge/en/problems/view/1007
https://www.urionlinejudge.com.br/judge/en/problems/view/1008
https://www.urionlinejudge.com.br/judge/en/problems/view/1009
https://www.urionlinejudge.com.br/judge/en/problems/view/1010
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/home/zoha/anaconda3/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/zoha/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bira"
@Zoha131
Zoha131 / ImageBehavior.java
Last active May 12, 2019 10:51
Custom CoordinatorLayout Behavior
package io.github.zoha131.custombehavioronefinal;
import android.annotation.SuppressLint;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
package learnings;
import java.util.*;
// Data structure to store graph edges
class Edge {
int src, dest;
public Edge(int src, int dest) {
this.src = src;
this.dest = dest;