Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
2b02846
Create Bubble sorting
Aswinipai Oct 6, 2021
eb8da5f
Create Implementation of AVL Tree
dashingsaikat Oct 6, 2021
872b426
Create Reverse_words_in_a_String.cpp
roughking07 Oct 6, 2021
1765db1
Counting Sort added
sksukruth Oct 6, 2021
4ce3916
Create Pattern.cpp
PranavJindal1 Oct 6, 2021
e99e771
Create RecursiveBinarySearch.cpp
roughking07 Oct 6, 2021
bf553b3
Created code for checksum
18CE112 Oct 6, 2021
a092d25
Programs Added By @ProgrammerShri
ProgrammerShri Oct 6, 2021
4d1d45f
Function Overloading
prashantkalokhe Oct 6, 2021
37eb326
Operator Overloading
prashantkalokhe Oct 6, 2021
5947db6
Merge pull request #12 from GCodeE/GCodeE-patch-1
VivekDubey9 Oct 7, 2021
3984f2c
Merge pull request #13 from hinata027/master
VivekDubey9 Oct 7, 2021
b4cd5fd
Merge pull request #14 from ashutoshmittal26/master
VivekDubey9 Oct 7, 2021
b033b1a
Merge pull request #15 from msromi/patch-1
VivekDubey9 Oct 7, 2021
0b172c9
Merge pull request #16 from Shivamjindal1/master
VivekDubey9 Oct 7, 2021
052825e
Merge pull request #17 from sanu-coder/patch-1
VivekDubey9 Oct 7, 2021
3757545
Merge pull request #18 from sanu-coder/patch-2
VivekDubey9 Oct 7, 2021
3320ddb
Merge pull request #19 from Hics0000/master
VivekDubey9 Oct 7, 2021
fe3cedd
Merge pull request #20 from shreyanshsatvik/patch-1
VivekDubey9 Oct 7, 2021
d0ef0b9
Merge pull request #21 from omarr45/omarr45-patch-1
VivekDubey9 Oct 7, 2021
59b950c
Merge pull request #23 from TharinduRewatha/master
VivekDubey9 Oct 7, 2021
ac39e8b
Merge pull request #24 from Aswinipai/patch-1
VivekDubey9 Oct 7, 2021
11274b3
Merge pull request #25 from dashingsaikat/patch-1
VivekDubey9 Oct 7, 2021
e23a2c0
Merge pull request #26 from roughking07/patch-1
VivekDubey9 Oct 7, 2021
90cb0fd
Merge pull request #28 from sksukruth/master
VivekDubey9 Oct 7, 2021
83f8d05
Merge pull request #30 from Pranav-Jindal/master
VivekDubey9 Oct 7, 2021
06189fa
Merge pull request #31 from roughking07/patch-2
VivekDubey9 Oct 7, 2021
7ddea03
Merge pull request #32 from 18CE112/master
VivekDubey9 Oct 7, 2021
7bfd8de
Merge pull request #33 from ProgrammerShri/master
VivekDubey9 Oct 7, 2021
9144188
Merge pull request #34 from prashantkalokhe/patch-1
VivekDubey9 Oct 7, 2021
71d5e04
Merge pull request #35 from prashantkalokhe/patch-2
VivekDubey9 Oct 7, 2021
38019c4
Create Recursive factorials
falsecodes Oct 7, 2021
fa96d8d
Create howrecursionworks
falsecodes Oct 7, 2021
b4fa79a
Create jump search cpp
falsecodes Oct 7, 2021
38dde76
Create fibonacci search
falsecodes Oct 7, 2021
065d554
Merge pull request #36 from falsecodes/patch-1
VivekDubey9 Oct 7, 2021
df4190c
Merge pull request #37 from falsecodes/patch-2
VivekDubey9 Oct 7, 2021
5ce9b2e
Merge pull request #38 from falsecodes/patch-3
VivekDubey9 Oct 7, 2021
e6a1e02
Merge pull request #39 from falsecodes/patch-4
VivekDubey9 Oct 7, 2021
7516368
Merge sort
ashutoshmittal26 Oct 7, 2021
87ff4fa
merge two sorted linkedlist
ashutoshmittal26 Oct 7, 2021
14207fd
Create Ping Pong Game
Oct 7, 2021
9d48939
Create game
Oct 7, 2021
09c7c80
updated ll_Deletion.cpp
pathakvsp1 Oct 7, 2021
73f9ad5
perfect_number.cpp
PallaviPareek Oct 7, 2021
2aa4dfb
Create scientific calculator in python
dudeshreyu Oct 7, 2021
ffe3c50
sparse matrix c++
Oct 8, 2021
cce663f
Create healthy_programmer.py
gauravdubey110 Oct 8, 2021
d53ef11
update perfect no
harshit-paneri Oct 8, 2021
315afc8
Merge branch 'VivekDubey9:master' into master
omarr45 Oct 8, 2021
23e5c6b
Create KnapsackRecursive.cpp
omarr45 Oct 8, 2021
48fd3a2
Create KnapsackRec.cpp
omarr45 Oct 8, 2021
10e0180
Merge pull request #2 from omarr45/omarr45-patch-2
omarr45 Oct 8, 2021
27acde6
Create anagram.cpp
melonwall Oct 9, 2021
8e00d2a
Programm for FCFS
khushimehta12 Oct 9, 2021
abf0537
Simple half pyramid pattern: added
khushimehta12 Oct 9, 2021
79cbf96
Merge pull request #1 from khushimehta12/khushimehta12-patch-1
khushimehta12 Oct 9, 2021
6e00a43
Create remove nth node from end of the list
mnigam504 Oct 9, 2021
d2c155a
Create AnagramOfStrings.java
ujjwalnp Oct 9, 2021
7856a72
Created avoid_flood_leetcode_sol
jiyanpatil07 Oct 9, 2021
1b4f75a
Merge pull request #40 from ashutoshmittal26/master
VivekDubey9 Oct 9, 2021
fc77d45
Merge pull request #41 from pratham-web/patch-1
VivekDubey9 Oct 9, 2021
604104f
Merge pull request #54 from jiyanpatil07/jiyanpatil07-patch-1
VivekDubey9 Oct 9, 2021
afe6352
Merge pull request #53 from ujjwalnp/patch-1
VivekDubey9 Oct 9, 2021
55cf558
Merge pull request #52 from mnigam504/mnigam504-patch-1
VivekDubey9 Oct 9, 2021
152ba2e
Merge pull request #51 from khushimehta12/master
VivekDubey9 Oct 9, 2021
561cf87
Merge pull request #50 from melonwall/patch-1
VivekDubey9 Oct 9, 2021
f87eabd
Merge pull request #49 from omarr45/master
VivekDubey9 Oct 9, 2021
55cca18
Merge pull request #48 from harshit-paneri/harshit-paneri-patch-1
VivekDubey9 Oct 9, 2021
dbba22e
Merge pull request #47 from gauravdubey110/patch-2
VivekDubey9 Oct 9, 2021
06d0079
Merge pull request #46 from Hiten15/master
VivekDubey9 Oct 9, 2021
0a091ba
Merge pull request #45 from dudeshreyu/master
VivekDubey9 Oct 9, 2021
19c6e10
Merge pull request #44 from PallaviPareek/master
VivekDubey9 Oct 9, 2021
bc5d96a
Merge pull request #43 from pathakvsp1/master
VivekDubey9 Oct 9, 2021
10cf496
Merge pull request #42 from pratham-web/patch-2
VivekDubey9 Oct 9, 2021
2e269a5
3 Sum Solution
nihal-ahmad Oct 10, 2021
806bf41
Good Binary String
me-ayush Oct 10, 2021
e7d84b3
Sign-In Sign-Out
me-ayush Oct 10, 2021
2451f9f
added a heapsort c++ file
03brainy-clicks Oct 10, 2021
2e40166
Create construct-quad-tree.cpp
jiyanpatil07 Oct 10, 2021
d0ee33a
Calculator.cpp
tejasnopany Oct 10, 2021
004a7c4
Created a program to rotate a LinkedList
PaarthAgarwal Oct 10, 2021
846b2d1
Added a heap sort program using C++ language.
SHARMA-SAURAV Oct 10, 2021
f73a87e
Added Heap Sort
utkarsh-us Oct 11, 2021
8df7840
Merge pull request #55 from nihal-ahmad/master
VivekDubey9 Oct 11, 2021
03dd6a4
Merge pull request #64 from mrgentlemanus/master
VivekDubey9 Oct 11, 2021
8675609
Merge pull request #56 from me-ayush/master
VivekDubey9 Oct 11, 2021
b725771
Merge pull request #63 from SHARMA-SAURAV/master
VivekDubey9 Oct 11, 2021
8b56a6d
Merge pull request #60 from PaarthAgarwal/master
VivekDubey9 Oct 11, 2021
6616c75
Merge pull request #59 from tejasnopany/patch-1
VivekDubey9 Oct 11, 2021
4abf7d3
Merge pull request #58 from jiyanpatil07/jiyanpatil07-patch-2
VivekDubey9 Oct 11, 2021
946fef1
Merge pull request #57 from 03brainy-clicks/master
VivekDubey9 Oct 11, 2021
da8d5d8
Create sort_a_stack_using_recursion.cpp
PaarthAgarwal Oct 11, 2021
014e23c
Create Vector_STL.cpp
saksh-05 Oct 11, 2021
a1b5b0c
Create KMP_search_algorithm.cpp
saksh-05 Oct 11, 2021
e99b631
Create palindrome.cpp
melonwall Oct 12, 2021
2e29e6f
Create insertion_sort.cpp
melonwall Oct 12, 2021
71382d2
Create reverse_number.cpp
melonwall Oct 12, 2021
07cf8ea
Create Hangman game.cpp
jyotsana279 Oct 12, 2021
9bb80ae
Create Modern
gandhimayank-web Oct 12, 2021
eec36a0
Create rainwatertrapping.cpp
Ayushi912 Oct 12, 2021
1563b4f
Create sudokusolver.cpp
Ayushi912 Oct 12, 2021
4105677
Create quotient_and_remainder
Akhilsv Oct 12, 2021
c9f41c6
reverse the string code
Alan-Biju Oct 12, 2021
2ac7389
Rename Quotient_and_Remainder to Quotient_and_Remainder.cpp
Akhilsv Oct 12, 2021
9d552ae
Create MatrixAddition.java
ujjwalnp Oct 13, 2021
de40055
Create BubbleSort.java
ujjwalnp Oct 13, 2021
887fc89
Create YearMonthDay.java
ujjwalnp Oct 13, 2021
52747af
Update Recursive factorials
Gavindu99-A Oct 13, 2021
205320d
Update Prime_factors.cpp
Gavindu99-A Oct 13, 2021
7fdd474
Update Bubble sorting
Gavindu99-A Oct 13, 2021
7fc1e00
Update fibonacciDP.cpp
Gavindu99-A Oct 13, 2021
d2ede7e
Create Tree from Postorder and Inorder
StaHk-collab Oct 14, 2021
21d327c
Updated READ.md to make more sense of it
Oct 14, 2021
475de22
Map app using js
ShrinandaMaity Oct 14, 2021
f52881b
added a palindrom number program using C++ language
SHARMA-SAURAV Oct 14, 2021
d6b1247
Added a Armstrong Number program using C++ language.
SHARMA-SAURAV Oct 14, 2021
40161bc
Merge pull request #89 from SHARMA-SAURAV/master
VivekDubey9 Oct 15, 2021
eb0968a
Merge pull request #85 from Gavindu99-A/patch-1
VivekDubey9 Oct 15, 2021
0a36dc1
Merge pull request #88 from ShrinandaMaity/master
VivekDubey9 Oct 15, 2021
bb7971f
Merge pull request #65 from PaarthAgarwal/master
VivekDubey9 Oct 15, 2021
58f1b77
Merge pull request #66 from saurabhtopthon01/master
VivekDubey9 Oct 15, 2021
d02cf42
Merge pull request #87 from anay2310/patch-1
VivekDubey9 Oct 15, 2021
3f6bbea
Merge pull request #86 from StaHk-collab/patch-1
VivekDubey9 Oct 15, 2021
1386837
Merge pull request #84 from Gavindu99-A/master
VivekDubey9 Oct 15, 2021
d66ef6a
Merge pull request #72 from melonwall/patch-3
VivekDubey9 Oct 15, 2021
cb4fe68
Merge pull request #73 from melonwall/patch-4
VivekDubey9 Oct 15, 2021
42bc017
Merge pull request #83 from ujjwalnp/patch-4
VivekDubey9 Oct 15, 2021
9b060ba
Merge pull request #82 from ujjwalnp/patch-3
VivekDubey9 Oct 15, 2021
c93c07f
Merge pull request #74 from melonwall/patch-5
VivekDubey9 Oct 15, 2021
b744da6
Merge pull request #75 from jyotsana279/master
VivekDubey9 Oct 15, 2021
c2f2c21
Merge pull request #81 from ujjwalnp/patch-2
VivekDubey9 Oct 15, 2021
eb1b968
Merge pull request #79 from Akhilsv/master
VivekDubey9 Oct 15, 2021
37b8914
Merge pull request #78 from Alan-Biju/master
VivekDubey9 Oct 15, 2021
94ae55b
Merge pull request #77 from Ayushi912/master
VivekDubey9 Oct 15, 2021
5068974
Merge pull request #76 from gandhimayank-web/gandhimayank-web-patch-1
VivekDubey9 Oct 15, 2021
5a4ede2
prints all subsequence of entered string
piyush4for Oct 15, 2021
2d36204
Added a linear search program using C++ language
SHARMA-SAURAV Oct 15, 2021
ad24d52
Updated AnagramOfStrings.java to show how it works
Oct 15, 2021
20b2d68
Defined what is bubble sort in java
Oct 15, 2021
b09ca84
Defined MATRIX ADDITION
Oct 15, 2021
200e2b4
Updated the definition for recursive factorial program
Oct 15, 2021
6b03644
Create Transpose.cpp
nityaprakash10 Oct 15, 2021
b09d5c9
Create swap.cpp
nityaprakash10 Oct 15, 2021
def61ae
Create bubbleSort
abhishek-krishna-tm Oct 15, 2021
0eaccbb
Create SelectionSort
abhishek-krishna-tm Oct 15, 2021
315298f
Create stingReverse
abhishek-krishna-tm Oct 15, 2021
15f9ebd
Create optimizedbubblesort
abhishek-krishna-tm Oct 15, 2021
d0d6863
Create Divide and Conquer DP
982danish Oct 15, 2021
b038902
Create Binomial Coefficients
982danish Oct 15, 2021
b67f40e
Create The Inclusion-Exclusion Principle
982danish Oct 15, 2021
85aca57
Create Ternary Search
982danish Oct 15, 2021
4a3ac54
Merge pull request #105 from 982danish/patch-5
VivekDubey9 Oct 16, 2021
c2ec3f9
Merge pull request #104 from 982danish/patch-4
VivekDubey9 Oct 16, 2021
a20ba53
Merge pull request #103 from 982danish/patch-3
VivekDubey9 Oct 16, 2021
737e6cb
Merge pull request #102 from 982danish/patch-2
VivekDubey9 Oct 16, 2021
eba3f2e
Merge pull request #101 from CypherAk007/patch-4
VivekDubey9 Oct 16, 2021
34ec08f
Merge pull request #100 from CypherAk007/patch-3
VivekDubey9 Oct 16, 2021
10a15e4
Merge pull request #99 from CypherAk007/patch-2
VivekDubey9 Oct 16, 2021
6c22eb4
Merge pull request #98 from CypherAk007/patch-1
VivekDubey9 Oct 16, 2021
b73ce2a
Merge pull request #97 from nityaprakash10/patch-2
VivekDubey9 Oct 16, 2021
17fc16d
Merge pull request #96 from nityaprakash10/patch-1
VivekDubey9 Oct 16, 2021
d699576
Merge pull request #95 from anay2310/patch-5
VivekDubey9 Oct 16, 2021
3f3a6a6
Merge pull request #94 from anay2310/patch-4
VivekDubey9 Oct 16, 2021
1346265
Merge pull request #93 from anay2310/patch-3
VivekDubey9 Oct 16, 2021
f38e99c
Merge pull request #92 from anay2310/patch-2
VivekDubey9 Oct 16, 2021
e8d32b9
Merge pull request #91 from SHARMA-SAURAV/master
VivekDubey9 Oct 16, 2021
d26d3bc
Merge pull request #90 from piyush4for/patch-1
VivekDubey9 Oct 16, 2021
8a6cc76
Create frequency_of_chars.cpp
madnmaxx Oct 16, 2021
dbff08e
Create multiply_two_matrices.cpp
madnmaxx Oct 16, 2021
8a26c82
Create binary_search_tree.cpp
madnmaxx Oct 16, 2021
8fbe027
added a flappy bird game.
paiyarohit Oct 16, 2021
a4af7c7
Create reverseLinkedList.cpp
Pranay-Gupta Oct 17, 2021
8d384f9
Merge pull request #1 from Pranay-Gupta/Pranay-Gupta-patch-1
Pranay-Gupta Oct 17, 2021
5b3a3cb
Delete reverseLinkedList.cpp
Pranay-Gupta Oct 17, 2021
deb0bc7
Create reverseLinkedListIter.cpp
Pranay-Gupta Oct 17, 2021
6aa2024
Create sum of array [Hackererank]
afeefaahmad Oct 17, 2021
72ba0eb
Create Palindromic partitioning
Ayushi02paul192 Oct 17, 2021
dfba7d9
Create nextsmallerelement.cpp
Anushka310 Oct 17, 2021
e95375d
Create Longest Common Subsequence
ujjwal-shukla Oct 17, 2021
f9a51d7
Create Topological Sort
ujjwal-shukla Oct 17, 2021
d9669bb
Create Longest Path in a Matrix
ujjwal-shukla Oct 17, 2021
6310998
Create Longest Increasing Subsequence
ujjwal-shukla Oct 17, 2021
9507e41
Create KMP algorithm
ujjwal-shukla Oct 17, 2021
07968dd
add two matrixes
Gavindu99-A Oct 17, 2021
29c99d0
Create prime.cpp
mrgr4yhat Oct 18, 2021
a340c99
Create add 2 numbers
mrgr4yhat Oct 18, 2021
e7326c6
Create bubble_sort.cpp
mrgr4yhat Oct 18, 2021
ffbbba5
Create sorted array.cpp
mrgr4yhat Oct 18, 2021
84679df
Create Ceiling sum.cpp
JohnRakon Oct 18, 2021
06638d6
Create reverse_string.py
red-shadow18 Oct 18, 2021
b24adae
Create Number Guessing Game
red-shadow18 Oct 18, 2021
eafea85
Create Longest Common Subsequence
alhad-balak Oct 18, 2021
7febe1f
Create Kth Symbol Grammar
alhad-balak Oct 18, 2021
facf2aa
Create Tower of Hanoi
alhad-balak Oct 18, 2021
9db6a91
Create Graph_BFS
stuxnet-8 Oct 18, 2021
51f1fe9
Boruvka's algorithm MST
Sau2001rabh Oct 18, 2021
ad8e6db
Create floyd_warshall.cpp
shangchi9 Oct 19, 2021
017cd82
added sort array with squares cpp code
tanishaPandey-2019 Oct 19, 2021
c2ccff8
Added find permutation
tanishaPandey-2019 Oct 19, 2021
7599fe8
Added code for Total Moves For Bishop
tanishaPandey-2019 Oct 19, 2021
71e1798
Create FloydWarshall.cpp
devmitanshu Oct 19, 2021
99211a0
Create Prim's_Algo.cpp
devmitanshu Oct 19, 2021
ec35457
Create ternary search
Shivam0507Dubey Oct 20, 2021
b3ba590
Create lucas theorem
Shivam0507Dubey Oct 20, 2021
7fd1a6d
Create sieve of eratosthenes
Shivam0507Dubey Oct 20, 2021
e3b90ce
Create segmented sieve
Shivam0507Dubey Oct 20, 2021
e0521a9
Merge pull request #147 from Shivam0507Dubey/patch-1
VivekDubey9 Oct 20, 2021
a79d7a5
Merge pull request #150 from Shivam0507Dubey/patch-5
VivekDubey9 Oct 20, 2021
f8d0a6e
Merge pull request #149 from Shivam0507Dubey/patch-4
VivekDubey9 Oct 20, 2021
ee29b65
Merge pull request #148 from Shivam0507Dubey/patch-3
VivekDubey9 Oct 20, 2021
7b9f9d8
Merge pull request #146 from devmitanshu/patch-2
VivekDubey9 Oct 20, 2021
e09f330
Merge pull request #145 from devmitanshu/patch-1
VivekDubey9 Oct 20, 2021
d4fa0d9
Merge pull request #143 from tanishaPandey-2019/patch-3
VivekDubey9 Oct 20, 2021
6c2538b
Merge pull request #115 from Anushka310/master
VivekDubey9 Oct 20, 2021
fcaffff
Merge pull request #142 from tanishaPandey-2019/patch-2
VivekDubey9 Oct 20, 2021
a81f792
Merge pull request #141 from tanishaPandey-2019/patch-1
VivekDubey9 Oct 20, 2021
d841f70
Merge pull request #140 from shangchi9/patch-1
VivekDubey9 Oct 20, 2021
b11af5b
Merge pull request #138 from Sau2001rabh/master
VivekDubey9 Oct 20, 2021
5414b9c
Merge pull request #137 from stuxnet-8/stuxnet-8-patch-1
VivekDubey9 Oct 20, 2021
4438a01
Merge pull request #136 from alhad-balak/alhad-balak
VivekDubey9 Oct 20, 2021
8104bd6
Merge pull request #134 from alhad-balak/Abhinav
VivekDubey9 Oct 20, 2021
a02e2b0
Merge pull request #133 from red-shadow18/red-shadow18-patch-2
VivekDubey9 Oct 20, 2021
f7925ab
Merge pull request #132 from red-shadow18/red-shadow18-1
VivekDubey9 Oct 20, 2021
2eb673a
Merge pull request #131 from JohnRakon/patch-1
VivekDubey9 Oct 20, 2021
8ea0567
Merge pull request #129 from TheGr4yhAt/patch-5
VivekDubey9 Oct 20, 2021
c6cd48e
Merge pull request #128 from TheGr4yhAt/patch-4
VivekDubey9 Oct 20, 2021
be4fc92
Merge pull request #127 from TheGr4yhAt/patch-3
VivekDubey9 Oct 20, 2021
75228c5
Merge pull request #126 from TheGr4yhAt/patch-1
VivekDubey9 Oct 20, 2021
c5facfa
Merge pull request #122 from Gavindu99-A/patch-2
VivekDubey9 Oct 20, 2021
3361630
Merge pull request #120 from ujjwal-shukla/patch-5
VivekDubey9 Oct 20, 2021
4477f9e
Merge pull request #106 from madnmaxx/patch-1
VivekDubey9 Oct 20, 2021
9abac73
Merge pull request #119 from ujjwal-shukla/patch-4
VivekDubey9 Oct 20, 2021
d4b7404
Merge pull request #118 from ujjwal-shukla/patch-3
VivekDubey9 Oct 20, 2021
98ec07a
Merge pull request #117 from ujjwal-shukla/patch-2
VivekDubey9 Oct 20, 2021
05351c4
Merge pull request #116 from ujjwal-shukla/patch-1
VivekDubey9 Oct 20, 2021
7eb13fe
Merge pull request #114 from Ayushi02paul192/patch-1
VivekDubey9 Oct 20, 2021
e071c7f
Merge pull request #112 from afeefaahmad/afeefaahmad-patch-1
VivekDubey9 Oct 20, 2021
31528e5
Merge pull request #111 from Pranay-Gupta/master
VivekDubey9 Oct 20, 2021
abb5bc3
Merge pull request #109 from paiyarohit/master
VivekDubey9 Oct 20, 2021
6261272
Merge pull request #108 from madnmaxx/patch-3
VivekDubey9 Oct 20, 2021
4dc82b2
Merge pull request #107 from madnmaxx/patch-2
VivekDubey9 Oct 20, 2021
89a331b
Add files via upload
devGuadalajara Oct 23, 2021
2eab925
Merge pull request #1 from devGuadalajara/es-translations
devGuadalajara Oct 23, 2021
8f92265
Add files via upload
devGuadalajara Oct 23, 2021
28dc16b
Merge pull request #2 from devGuadalajara/greddy-algos
devGuadalajara Oct 23, 2021
6092249
Add files via upload
devGuadalajara Oct 23, 2021
ac12de5
Merge pull request #3 from devGuadalajara/image-proccesing-Algos
devGuadalajara Oct 23, 2021
8fa857a
Disjoint Set Union algos
devGuadalajara Oct 24, 2021
b37559f
Merge pull request #4 from devGuadalajara/Disjoint-Set-Union
devGuadalajara Oct 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions 3sum.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

// 3 SUM Solution


class Solution {
public:
vector<vector<int>> threeSum(vector<int>& nums) {
int N = nums.size();
vector<vector<int>> result;
if (N < 2) {
result;
}
sort(begin(nums), end(nums));
for (int i = 0; i < N - 2 && nums[i] <= 0; i++) {
if (i > 0 && nums[i] == nums[i - 1]) {
continue;
}
int j = i + 1;
int k = N - 1;
while (j < k) {
int sum = nums[i] + nums[j] + nums[k];
if (sum < 0) {
j++;
}
else if (sum > 0) {
k--;
}
else {
result.push_back({nums[i], nums[j], nums[k]});
k--;
while (j < k && nums[k] == nums[k + 1]) {
k--;
}
j++;
while (j < k && nums[j] == nums[j - 1]) {
j++;
}
}
}
}
return result;
}
};
39 changes: 39 additions & 0 deletions AnagramOfStrings.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This is the code for finding anagram of the string in java

//Anagram : a word or phrase that is made by arranging the letters of another word or phrase in a different order
//Example: "Worth" is an anagram of ‘throw’.
//This java anagram program compares the letters of both words/strings entered and then shows
//wheather they are anagram of each other or not

import java.util.Scanner;
public class AnagramOfStrings {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter first string : ");
String a = sc.nextLine();
System.out.print("Enter second string : ");
String b = sc.nextLine();

boolean isAnagram = false;
boolean visited[] = new boolean[b.length()];

if (a.length()==b.length()) {
for (int i=0; i<a.length(); i++) {
isAnagram = false;
for (int j=0; j<b.length(); j++) {
if (a.charAt(i)==b.charAt(j) && !visited[j]) {
isAnagram = true;
visited [j] = true;
break;
}
}if (!isAnagram) break;
}
}
if (isAnagram) System.out.println("an anagram");
else System.out.println("not an anagram");
}

}


20 changes: 20 additions & 0 deletions Armstrong Number.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <iostream>
using namespace std;
int main()
{
int n,r,sum=0,temp;
cout<<"Enter the Number= ";
cin>>n;
temp=n;
while(n>0)
{
r=n%10;
sum=sum+(r*r*r);
n=n/10;
}
if(temp==sum)
cout<<"Armstrong Number."<<endl;
else
cout<<"Not Armstrong Number."<<endl;
return 0;
}
68 changes: 68 additions & 0 deletions Billing systems
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#include<iostream>
using namespace std;

double getUnitprice(int itemCode);

int main(){

double invoice[10][4];
int i=0; char more; char date[100];

cout << "\n\n********* Here are the Item prices for your information********** \n\nItem code\tUnitPrice\n\n1\t100\n2\t200\n3\t300\nInvalidCode\t0\n\n";
cout << "Enter the date: ";
cin >> date;

do {

cout << "\n\nItem code: ";
cin >> invoice[i][0];
cout << "Quantity : ";
cin >> invoice[i][1];

invoice[i][2] = getUnitprice(invoice[i][0]);
invoice[i][3] = invoice[i][1] * invoice[i][2];

cout << "Do you have any other items to be entered next (y/n) ? ";
cin >> more;

i++;
} while(more == 'y');


cout << "\n\n-----------------------------\n\n";
cout << "Date : " << date << "\n\n";

cout << "ItemCode|Quantity|UnitPrice|TotalPrice\n\n";
int tot=0;
for(int k=0; k<i; k++)

{
for(int l=0; l<4; l++)
{
cout << invoice[k][l] << "\t";
}
cout << endl;
tot = tot + invoice[k][3];
}

cout << "\n\nTotal : " << tot;
cout << "\n\n-----------------------------\n\n\n";

return 0;
}

double getUnitprice(int itemCode){
double price;
switch (itemCode)
{
case 1: price = 100;
break;
case 2: price = 200;
break;
case 3: price = 300;
break;
default: price = 0;
break;
}
return price;
}
36 changes: 36 additions & 0 deletions Binary search
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#include <iostream>

using namespace std;
int binary(int arr[],int p,int q,int x){
int mid;
mid=(p+q)/2;
if(p<=q){
if(arr[mid]==x){
return mid;
}
else if(arr[mid]>x){
binary(arr,mid+1,q,x);
}
else{
binary(arr,p,mid-1,x);
}
}

return -1;
}

int main()
{
int m,n,i,x,s,r;
cin>>r>>x;
m=0,n=r-1;
int a[r];
for(i=0;i<r;i++)
cin>>a[i];
s=binary(a,m,n,x);
cout<<"searching element is present in index "<<s;



return 0;
}
8 changes: 8 additions & 0 deletions Binomial Coefficients
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const int maxn = ...;
int C[maxn + 1][maxn + 1];
C[0][0] = 1;
for (int n = 1; n <= maxn; ++n) {
C[n][0] = C[n][n] = 1;
for (int k = 1; k < n; ++k)
C[n][k] = C[n - 1][k - 1] + C[n - 1][k];
}
59 changes: 59 additions & 0 deletions Bitonic Sort
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

#include<bits/stdc++.h>
using namespace std;

void compAndSwap(int a[], int i, int j, int dir)
{
if (dir==(a[i]>a[j]))
swap(a[i],a[j]);
}

void bitonicMerge(int a[], int low, int cnt, int dir)
{
if (cnt>1)
{
int k = cnt/2;
for (int i=low; i<low+k; i++)
compAndSwap(a, i, i+k, dir);
bitonicMerge(a, low, k, dir);
bitonicMerge(a, low+k, k, dir);
}
}

void bitonicSort(int a[],int low, int cnt, int dir)
{
if (cnt>1)
{
int k = cnt/2;

// sort in ascending order since dir here is 1
bitonicSort(a, low, k, 1);

// sort in descending order since dir here is 0
bitonicSort(a, low+k, k, 0);

// Will merge whole sequence in ascending order
// since dir=1.
bitonicMerge(a,low, cnt, dir);
}
}

void sort(int a[], int N, int up)
{
bitonicSort(a,0, N, up);
}

// Driver code
int main()
{
int a[]= {3, 7, 4, 8, 6, 2, 1, 5};
int N = sizeof(a)/sizeof(a[0]);

int up = 1; // means sort in ascending order
sort(a, N, up);

printf("Sorted array: \n");
for (int i=0; i<N; i++)
printf("%d ", a[i]);
return 0;
}
29 changes: 29 additions & 0 deletions Bubble sorting
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include<iostream>
using namespace std;
int main ()
{
int i, j,temp,pass=0;
int a[10] = {10,2,0,14,43,25,18,1,5,45};
cout <<"Input list ...\n";
for(i = 0; i<10; i++) {
cout <<a[i]<<"\t";
}
cout<<endl;
for(i = 0; i<10; i++) {
for(j = i+1; j<10; j++)
{
if(a[j] < a[i]) {
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
pass++;
}
cout <<"Sorted Element List ...\n";
for(i = 0; i<10; i++) {
cout <<a[i]<<"\t";
}
cout<<"\nNumber of passes taken to sort the list:"<<pass<<endl;
return 0;
}
43 changes: 43 additions & 0 deletions BubbleSort.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@


//WHAT IS BUBBLE SORT:
//Bubble Sort is one of the simplest sorting techniques in Java to sort the array elements.
//The swapping of elements continues until the array is sorted and no more swapping is required.
//We can also sort the elements in the descending order in which the smallest element goes at the end of the array in each iteration.
//THIS EXPLAINATION IS PROVIDED TO HELP BEGGINNER'S UNDERSTAND THE CODE




package arrays;

public class BubbleSort {

public static void main(String[] args) {
int a[] = {3, 1, -2, 7, 4, 0};
int n = a.length;

for (int i=0; i<n-1; i++) {
int minimumIndex = i;

for (int j=i; j<n; j++) {
if (a[j]<a[minimumIndex]) {
minimumIndex = j;

}

}
int temp = a[i];
a[i] = a[minimumIndex];
a[minimumIndex] = temp;



}
for (int e:a) {
System.out.print(e+" ");
}

}

}
40 changes: 40 additions & 0 deletions Bucket sort
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
void display(float *array, int size) {
for(int i = 0; i<size; i++)
cout << array[i] << " ";
cout << endl;
}
void bucketSort(float *array, int size) {
vector<float> bucket[size];
for(int i = 0; i<size; i++) { //put elements into different buckets
bucket[int(size*array[i])].push_back(array[i]);
}
for(int i = 0; i<size; i++) {
sort(bucket[i].begin(), bucket[i].end()); //sort individual vectors
}
int index = 0;
for(int i = 0; i<size; i++) {
while(!bucket[i].empty()) {
array[index++] = *(bucket[i].begin());
bucket[i].erase(bucket[i].begin());
}
}
}
int main() {
int n;
cout << "Enter the number of elements: ";
cin >> n;
float arr[n]; //create an array with given number of elements
cout << "Enter elements:" << endl;
for(int i = 0; i<n; i++) {
cin >> arr[i];
}
cout << "Array before Sorting: ";
display(arr, n);
bucketSort(arr, n);
cout << "Array after Sorting: ";
display(arr, n);
}
Loading