Skip to content

Instantly share code, notes, and snippets.

View kapilgupta101292's full-sized avatar
🎯
Focusing

Kapil Gupta kapilgupta101292

🎯
Focusing
View GitHub Profile
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
@kapilgupta101292
kapilgupta101292 / Java mail Create-Delete Appointment
Created June 21, 2019 16:14
Java mail Create/Delete Appointment
public void sendOutlookMail() throws Exception {
String toEmail = "abc@xyz.com";
String fromEmail = "xyz@abc.com";
//register the text/calendar mime type
MimetypesFileTypeMap mimetypes = (MimetypesFileTypeMap) MimetypesFileTypeMap.getDefaultFileTypeMap();
mimetypes.addMimeTypes("text/calendar ics ICS");
@kapilgupta101292
kapilgupta101292 / elasticsearch_commands.txt
Created December 30, 2019 05:21
Elastic Search Commands
curl -XGET -H "Content-Type: application/json" localhost:9200/_cat/indices?v
_cat => catalog
v => verbose format

If you are appearing for a system design interview use the following links that can help you crack the System Design Interview for the FAANG.

Links

[System Design Tutorial] (https://www.systemdesigntutorial.com)

Facebook System Design Interview Questions

Amazon System Design Interview Questions