Skip to content

Instantly share code, notes, and snippets.

View ajinkya933's full-sized avatar
♥️

Ajinkya Bobade ajinkya933

♥️
View GitHub Profile
@ajinkya933
ajinkya933 / cstring
Created January 5, 2017 20:23
reverse a cstring in C++, note that cstring is the same string that is used in C compiler
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char str[255];
cout<<"Write something here";
cin.getline(str,255);
int len=strlen(str);
#include <iostream>
#include <string>
using namespace std;
bool IsCharDuplicate(string s)
{
for (int i = 0 ; i < s.length(); i++)
for (int j = i+1; j <s.length() ; j++)
if (s[i]==s[j])
return true;
#include <iostream>
#include <string>
using namespace std;
bool IsCharDuplicate(String s)
{
for (int i = 0 ; i < s.length; i++)
for (int j = i+1; j <s.length ; j++)
if (s[i]==s[j])
return true;
@ajinkya933
ajinkya933 / update.java
Created April 16, 2016 04:29
update class
//
// main.java
// java
//
// Created by ajinkya bobade on 4/15/16.
// Copyright © 2016 ajinkya bobade. All rights reserved.
//
//Description: Compile the java programs downloaded by the
// download_assignments program and update the date deadlines of assinment submission to the output
@ajinkya933
ajinkya933 / gisttools.js
Created April 16, 2016 03:42
Description of gist
//
// main.java
// java
//
// Created by ajinkya bobade on 4/15/16.
// Copyright © 2016 ajinkya bobade. All rights reserved.
//
//Description: Compile the java programs downloaded by the
// download_assignments program and update the date deadlines of assinment submission to the output