Skip to content

Instantly share code, notes, and snippets.

View Ashwin-Kapes's full-sized avatar
🎯
Focusing

Ashwin Kain Ashwin-Kapes

🎯
Focusing
View GitHub Profile
@rajeakshay
rajeakshay / AllPathsFromASource.java
Created September 23, 2016 05:03
Print all paths from a given source to a destination - (http://www.geeksforgeeks.org/find-paths-given-source-destination/) Given a directed graph, a source vertex ‘s’ and a destination vertex ‘d’, print all paths from given ‘s’ to ‘d’.
/**
* Print all paths from a given source to a destination - (http://www.geeksforgeeks.org/find-paths-given-source-destination/)
* Given a directed graph, a source vertex ‘s’ and a destination vertex ‘d’, print all paths from given ‘s’ to ‘d’.
* */
import java.util.*;
public class AllPathsFromASource {
static class Graph{
int V;
Map<Integer, List<Integer>> adj; // Adjacency list
@SendOTP
SendOTP / Index.php
Last active May 10, 2016 11:50
SendOTP Client Side sample code JavaScript
<script type="text/javascript" src="jquery-2.1.4.min.js"></script>
<script type="text/javascript">
function sendOTP() {
var data = {"countryCode": "country code", "mobileNumber": "Mobile number to be verified"};
$.ajax({
url: 'http://Your-domain-name/path/sendotp.php?action=generateOTP',
type: 'POST',
dataType: 'json',
data: data,