Skip to content

Instantly share code, notes, and snippets.

View dverma's full-sized avatar

Dhawal Verma dverma

View GitHub Profile

##List A list is an ordered collection of elements.

List<E>
Data Structure Add Remove Get Contains Based On
ArrayList O(1) O(n) O(1) O(n) Array
LinkedList O(1) O(1) O(n) O(n) Linked List
CopyonWriteArrayList O(n) O(n) O(1) O(n) Array
@dverma
dverma / .bash_profile
Created February 11, 2017 23:14 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@dverma
dverma / test.txt
Created March 17, 2017 20:05
Test input for Range Modular Queries
This file has been truncated, but you can view the full file.
40000 40000
23077 516 10326 37251 6593 39086 25993 37890 23496 31872 25674 9791 19480 31927 2019 38900 17389 3321 36370 10332 15913 24342 10792 33803 15604 14257 13041 12305 35701 36587 1922 25974 12794 10439 858 18406 38728 5076 10589 8186 23298 34815 9836 1013 9604 382 31488 7760 37043 26008 32151 29408 15736 24062 26785 16214 34138 398 32904 12326 3559 18037 27252 19969 9050 16507 24348 32794 35943 22327 17816 25804 35299 18252 10151 24664 6309 4052 11287 34705 14640 39810 14569 13889 3110 37462 28037 24177 2219 19507 6240 17212 32221 36134 20974 978 39376 18491 2526 17318 22279 14744 22770 35279 29024 23846 14971 19712 31193 38108 1880 12316 12506 25636 17123 29804 371 28052 30760 12819 9376 26783 34392 11522 13713 35873 22409 8747 25610 39999 28746 26626 37431 17357 26574 1390 34102 19874 36060 37856 20007 25529 28266 31649 29106 27531 3224 8800 8993 33304 3541 19165 34884 18120 11352 3055 9440 13955 16755 24480 32650 21030 16168 28162 12281 18116 7019 17674 2626 15735 26859 32474 38678 15255 16419 38984
@dverma
dverma / introrx.md
Created January 17, 2018 22:16 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
{
"title": "Apache and Tomcat Logs",
"services": {
"query": {
"list": {
"0": {
"query": "apache !tomcat !static",
"alias": "",
"color": "#7EB26D",
"id": 0,
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="14">
<profile kind="CodeFormatterProfile" name="GoogleStyle" version="14">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>