Skip to content

Commit dba2208

Browse files
author
Ravi Mandliya
committed
Added a program to encrypts and decrypts a text using caeser cipher.
1 parent 486cd77 commit dba2208

File tree

2 files changed

+312
-0
lines changed

2 files changed

+312
-0
lines changed

CMakeCache.txt

Lines changed: 311 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,311 @@
1+
# This is the CMakeCache file.
2+
# For build in directory: /mnt/c/Users/ramand/OneDrive - Microsoft/Learn/github/algorithms_and_ds_playground
3+
# It was generated by CMake: /usr/bin/cmake
4+
# You can edit this file to change values found and used by cmake.
5+
# If you do not want to change any of the values, simply exit the editor.
6+
# If you do want to change a value, simply edit, save, and exit the editor.
7+
# The syntax for the file is as follows:
8+
# KEY:TYPE=VALUE
9+
# KEY is the name of a variable in the cache.
10+
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
11+
# VALUE is the current value for the KEY.
12+
13+
########################
14+
# EXTERNAL cache entries
15+
########################
16+
17+
//Path to a program.
18+
CMAKE_AR:FILEPATH=/usr/bin/ar
19+
20+
//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
21+
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
22+
CMAKE_BUILD_TYPE:STRING=
23+
24+
//Enable/Disable color output during build.
25+
CMAKE_COLOR_MAKEFILE:BOOL=ON
26+
27+
//CXX compiler.
28+
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
29+
30+
//Flags used by the compiler during all build types.
31+
CMAKE_CXX_FLAGS:STRING=
32+
33+
//Flags used by the compiler during debug builds.
34+
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
35+
36+
//Flags used by the compiler during release minsize builds.
37+
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
38+
39+
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
40+
// /Ot /Oy /Gs will produce slightly less optimized but smaller
41+
// files).
42+
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
43+
44+
//Flags used by the compiler during Release with Debug Info builds.
45+
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
46+
47+
//C compiler.
48+
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
49+
50+
//Flags used by the compiler during all build types.
51+
CMAKE_C_FLAGS:STRING=
52+
53+
//Flags used by the compiler during debug builds.
54+
CMAKE_C_FLAGS_DEBUG:STRING=-g
55+
56+
//Flags used by the compiler during release minsize builds.
57+
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
58+
59+
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
60+
// /Ot /Oy /Gs will produce slightly less optimized but smaller
61+
// files).
62+
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
63+
64+
//Flags used by the compiler during Release with Debug Info builds.
65+
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
66+
67+
//Flags used by the linker.
68+
CMAKE_EXE_LINKER_FLAGS:STRING=' '
69+
70+
//Flags used by the linker during debug builds.
71+
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
72+
73+
//Flags used by the linker during release minsize builds.
74+
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
75+
76+
//Flags used by the linker during release builds.
77+
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
78+
79+
//Flags used by the linker during Release with Debug Info builds.
80+
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
81+
82+
//Enable/Disable output of compile commands during generation.
83+
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
84+
85+
//Install path prefix, prepended onto install directories.
86+
CMAKE_INSTALL_PREFIX:PATH=/usr/local
87+
88+
//Path to a program.
89+
CMAKE_LINKER:FILEPATH=/usr/bin/ld
90+
91+
//Path to a program.
92+
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
93+
94+
//Flags used by the linker during the creation of modules.
95+
CMAKE_MODULE_LINKER_FLAGS:STRING=' '
96+
97+
//Flags used by the linker during debug builds.
98+
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
99+
100+
//Flags used by the linker during release minsize builds.
101+
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
102+
103+
//Flags used by the linker during release builds.
104+
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
105+
106+
//Flags used by the linker during Release with Debug Info builds.
107+
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
108+
109+
//Path to a program.
110+
CMAKE_NM:FILEPATH=/usr/bin/nm
111+
112+
//Path to a program.
113+
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
114+
115+
//Path to a program.
116+
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
117+
118+
//Value Computed by CMake
119+
CMAKE_PROJECT_NAME:STATIC=anAlgoProbAday
120+
121+
//Path to a program.
122+
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
123+
124+
//Flags used by the linker during the creation of dll's.
125+
CMAKE_SHARED_LINKER_FLAGS:STRING=' '
126+
127+
//Flags used by the linker during debug builds.
128+
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
129+
130+
//Flags used by the linker during release minsize builds.
131+
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
132+
133+
//Flags used by the linker during release builds.
134+
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
135+
136+
//Flags used by the linker during Release with Debug Info builds.
137+
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
138+
139+
//If set, runtime paths are not added when installing shared libraries,
140+
// but are added when building.
141+
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
142+
143+
//If set, runtime paths are not added when using shared libraries.
144+
CMAKE_SKIP_RPATH:BOOL=NO
145+
146+
//Flags used by the linker during the creation of static libraries.
147+
CMAKE_STATIC_LINKER_FLAGS:STRING=
148+
149+
//Flags used by the linker during debug builds.
150+
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
151+
152+
//Flags used by the linker during release minsize builds.
153+
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
154+
155+
//Flags used by the linker during release builds.
156+
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
157+
158+
//Flags used by the linker during Release with Debug Info builds.
159+
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
160+
161+
//Path to a program.
162+
CMAKE_STRIP:FILEPATH=/usr/bin/strip
163+
164+
//If true, cmake will use relative paths in makefiles and projects.
165+
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF
166+
167+
//If this value is on, makefiles will be generated without the
168+
// .SILENT directive, and all commands will be echoed to the console
169+
// during the make. This is useful for debugging only. With Visual
170+
// Studio IDE projects all commands are done without /nologo.
171+
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
172+
173+
//Value Computed by CMake
174+
anAlgoProbAday_BINARY_DIR:STATIC=/mnt/c/Users/ramand/OneDrive - Microsoft/Learn/github/algorithms_and_ds_playground
175+
176+
//Value Computed by CMake
177+
anAlgoProbAday_SOURCE_DIR:STATIC=/mnt/c/Users/ramand/OneDrive - Microsoft/Learn/github/algorithms_and_ds_playground
178+
179+
180+
########################
181+
# INTERNAL cache entries
182+
########################
183+
184+
//ADVANCED property for variable: CMAKE_AR
185+
CMAKE_AR-ADVANCED:INTERNAL=1
186+
//ADVANCED property for variable: CMAKE_BUILD_TOOL
187+
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
188+
//What is the target build tool cmake is generating for.
189+
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make
190+
//This is the directory where this CMakeCache.txt was created
191+
CMAKE_CACHEFILE_DIR:INTERNAL=/mnt/c/Users/ramand/OneDrive - Microsoft/Learn/github/algorithms_and_ds_playground
192+
//Major version of cmake used to create the current loaded cache
193+
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
194+
//Minor version of cmake used to create the current loaded cache
195+
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
196+
//Patch version of cmake used to create the current loaded cache
197+
CMAKE_CACHE_PATCH_VERSION:INTERNAL=12
198+
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
199+
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
200+
//Path to CMake executable.
201+
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
202+
//Path to cpack program executable.
203+
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
204+
//Path to ctest program executable.
205+
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
206+
//ADVANCED property for variable: CMAKE_CXX_COMPILER
207+
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
208+
//ADVANCED property for variable: CMAKE_CXX_FLAGS
209+
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
210+
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
211+
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
212+
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
213+
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
214+
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
215+
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
216+
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
217+
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
218+
//ADVANCED property for variable: CMAKE_C_COMPILER
219+
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
220+
//ADVANCED property for variable: CMAKE_C_FLAGS
221+
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
222+
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
223+
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
224+
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
225+
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
226+
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
227+
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
228+
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
229+
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
230+
//Executable file format
231+
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
232+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
233+
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
234+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
235+
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
236+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
237+
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
238+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
239+
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
240+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
241+
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
242+
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
243+
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
244+
//Name of generator.
245+
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
246+
//Name of generator toolset.
247+
CMAKE_GENERATOR_TOOLSET:INTERNAL=
248+
//Start directory with the top level CMakeLists.txt file for this
249+
// project
250+
CMAKE_HOME_DIRECTORY:INTERNAL=/mnt/c/Users/ramand/OneDrive - Microsoft/Learn/github/algorithms_and_ds_playground
251+
//Install .so files without execute permission.
252+
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
253+
//ADVANCED property for variable: CMAKE_LINKER
254+
CMAKE_LINKER-ADVANCED:INTERNAL=1
255+
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
256+
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
257+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
258+
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
259+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
260+
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
261+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
262+
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
263+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
264+
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
265+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
266+
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
267+
//ADVANCED property for variable: CMAKE_NM
268+
CMAKE_NM-ADVANCED:INTERNAL=1
269+
//number of local generators
270+
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1
271+
//ADVANCED property for variable: CMAKE_OBJCOPY
272+
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
273+
//ADVANCED property for variable: CMAKE_OBJDUMP
274+
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
275+
//ADVANCED property for variable: CMAKE_RANLIB
276+
CMAKE_RANLIB-ADVANCED:INTERNAL=1
277+
//Path to CMake installation.
278+
CMAKE_ROOT:INTERNAL=/usr/share/cmake-2.8
279+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
280+
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
281+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
282+
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
283+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
284+
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
285+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
286+
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
287+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
288+
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
289+
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
290+
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
291+
//ADVANCED property for variable: CMAKE_SKIP_RPATH
292+
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
293+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
294+
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
295+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
296+
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
297+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
298+
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
299+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
300+
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
301+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
302+
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
303+
//ADVANCED property for variable: CMAKE_STRIP
304+
CMAKE_STRIP-ADVANCED:INTERNAL=1
305+
//uname command
306+
CMAKE_UNAME:INTERNAL=/bin/uname
307+
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
308+
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
309+
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
310+
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
311+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Include contains single header implementation of data structures and some algori
138138
| Given an array of repeating/non-repeating intergeres, determine the first non-repeating int in this array | [first_non_repeating_int.cpp](common_ds_algo_problems/first_non_repeating_int.cpp)|
139139
| In Quantumland, there are n cities numbered from 1 to n. Here, c<sub>i</sub> denotes the i<sup>th</sup> city. There are n−1 roads in Quantumland. Here, c<sub>i</sub> and c<sub>i+1</sub> have a bidirectional road between them for each i < n.There is a rumor that Flatland is going to attack Quantumland, and the queen wants to keep her land safe. The road between c<sub>i</sub> and c<sub>i+1</sub> is safe if there is a guard in c<sub>i</sub> or c<sub>i+1</sub>. The queen has already placed a few guards in some of the cities, but she is not sure if they are enough to keep the roads safe. She wants to know the minimum number of new guards she needs to hire. See comments in solution for input/output details. | [save_quantamland.cpp](common_ds_algo_problems/save_quantumland.cpp)|
140140
| You are given an integer N. Find the digits in this number that exactly divide N (division that leaves 0 as remainder) and display their count. For N=24, there are 2 digits (2 & 4). Both of these digits exactly divide 24. So our answer is 2. See more details in header comment of the solution file. | [findDigits.cpp](common_ds_algo_problems/findDigits.cpp)|
141+
| Encrypt and then decrypts a text using Caeser Cipher. | [caeser_cipher.cpp](common_ds_algo_problems/caeser_cipher.cpp)|
141142

142143
### Math Problems
143144
| Problem | Solution |

0 commit comments

Comments
 (0)