Categories
- Computer Science (63)
- C Language (16)
- Coding Discussions (30)
- Linux / Unix Shell (16)
- Others (4)
- Overview (3)
- Entertainment (4)
- GNU+Linux+FOSS (41)
- Humor (17)
- Writings (5)
- Computer Science (63)
Tags
api array bash boot C++ casual combinatorics counting C program fedora firefox gcc gimp google graphics grub html id3 implementation defined behaviour internet ipod linux numerical octave poll prime number Programming R random number recursion shift operators skype undefined behavior video wallpaper wordpress workflowStackOverflow
Area51 Stackexchange Proposals to Follow
Top 10
- Floating point math operations in bash
- Read multiple arguments in bash script
- Implement stack using a queue
- Choose login manager GDM or KDM in Fedora
- C Language Constructors and Destructors with GCC
- Little and Big Endian conversion
- Wordpress.com Stats API
- Simpson's 1/3rd Rule
- Geeky Code Wallpaper with GIMP
- Fix dark video in Skype for Linux
Recent Comments
Polls
Category Archives: Coding Discussions
Check if a string is rotation of another
There are two strings. We need to find if one string is a rotation of the other. If yes then how many places it was rotated. The solution is pretty straightforward. I will describe two ways in this post.
Posted in Coding Discussions, Computer Science
Tagged C program, C++, casual, Programming
Leave a comment
Implement queue using stack
The puzzle is to implement basic queue operations with using only basic stack operations. That is, a stack object is given, we need construct a wrapper for the queue functions, insert, remove, which will only use the stack object as … Continue reading
Plot histogram in terminal
We had assignments to print “*”s in different formation in undergraduate class, which I never liked as they were pointless. Now I got a somewhat justifiable application, plot histogram in terminal. In the last post Generating random numbers from Normal … Continue reading
Posted in Coding Discussions, Computer Science
Tagged C program, casual, Programming, random number, workflow
1 Comment
Generating random numbers from Normal distribution in C
I needed to write a random number generator in C which will generate random numbers from Normal Distribution (Gaussian Distribution). Without this component I couldn’t proceed to finish writing a C code for Heuristic Kalman Algorithm by Lyonnet and Toscano … Continue reading
Posted in Coding Discussions, Computer Science
Tagged C program, numerical, Programming, random number, workflow
1 Comment
Dynamically allocating 2d array with adjacent rows in memory
In a previous post “Allocating multidimentional array at runtime in C” I have explained a technique to allocate multidimensional arrays on runtime. While playing around with OpenMPI, I came to know that while sending/receiving a buffer, it requires the elements … Continue reading
Posted in C Language, Coding Discussions, Computer Science
Tagged array, C program, Programming, workflow
2 Comments
Journey of a simple recursive code
Some one asked the following question in StackOverflow Implement a function with prototype char *repeat(char *s, int n) so that it creates and returns a string which consists of n repetitions of the input string s. For example: if the … Continue reading
Posted in C Language, Coding Discussions, Computer Science
Tagged C program, C++, Programming, recursion
Leave a comment
Implement stack using a queue
The puzzle is to implement basic stack operations with using only basic queue operations. That is, a queue object is given, we need construct a wrapper for the stack functions, push, pop, which will only use the queue object as … Continue reading
Detect Endianness of a System
In a previous post “Little and Big Endian conversion” i have briefly discussed about the Big-Endian and the Little-Endian representations. It is the ordering of the bytes (elementary addressable elements) within the representation of a larger basic data type. These … Continue reading
Get sorted index orderting of an array
Yesterday i was translating some code i wrote in R to C++. I had some calculation to do which required the list of index of the top n values in a list. Therefore what i needed was not a the … Continue reading
Posted in C Language, Coding Discussions, Computer Science
Tagged C program, C++, Programming, workflow
Leave a comment
Number of trailing zeros in factorial of an integer
An integer n is given, the task is to find the number of trailing zeros in n! .
Posted in Coding Discussions, Computer Science, Others
Tagged C program, counting, numerical, Programming
2 Comments






