geeksforgeeks.org
Bit Magic Archives - GeeksforGeeks
http://www.geeksforgeeks.org/category/bit-magic
A computer science portal for geeks. Branch & Bound. Geek of the Month. Geek on the Top. Category Archives: Bit Magic. Find profession in a special family. August 12, 2016. Print first n numbers with exactly two set bits. August 6, 2016. Generate 0 and 1 with 25% and 75% probability. August 2, 2016. Given a function rand50() that returns 0 or 1 with equal probability, write a function that returns 1 with 75% probability and 0 with 25% probability using rand50() only. Minimize the number of calls to r...
geeksforgeeks.org
C/C++ Puzzles Archives - GeeksforGeeks
http://www.geeksforgeeks.org/category/c-puzzles
A computer science portal for geeks. Branch & Bound. Geek of the Month. Geek on the Top. Category Archives: C/C Puzzles. Inline namespaces and usage of the “using” directive inside namespaces. August 17, 2016. Bits/stdc .h in C. August 2, 2016. Namespace in C Set 3 (Accessing, creating header, nesting and aliasing). July 27, 2016. Namespace in C Set 1 (Introduction) Namespace in C Set 2 (Extending namespace and Unnamed namespace) Different ways to access namespace In C , there are two ways of accessing n...
geeksforgeeks.org
Arrays Archives - GeeksforGeeks
http://www.geeksforgeeks.org/category/c-arrays
A computer science portal for geeks. Branch & Bound. Geek of the Month. Geek on the Top. Reverse an array in groups of given size Set 2 (Variations of Set 1 ). August 23, 2016. Reverse an array in groups of given size. August 18, 2016. Maximum Product Subarray Set 2 (Using Two Traversals). August 17, 2016. Find all triplets in a sorted array that forms Geometric Progression. August 5, 2016. Given a sorted array of distinct positive integers, print all triplets that forms Geometric Progression with integr...
geeksforgeeks.org
Linked Lists Archives - GeeksforGeeks
http://www.geeksforgeeks.org/category/linked-list
A computer science portal for geeks. Branch & Bound. Geek of the Month. Geek on the Top. Category Archives: Linked Lists. Rearrange a given list such that it consists of alternating minimum maximum elements. August 15, 2016. Flatten a multi-level linked list Set 2 (Depth wise). July 23, 2016. Decimal Equivalent of Binary Linked List. June 10, 2016. Given a singly linked list of 0s and 1s find its decimal equivalent. Input : 0- 0- 0- 1- 1- 0- 0- 1- 0 Output : 50 Input : 1- 0- 0 Output : 4 Decimal Valu...
geeksforgeeks.org
C++ Programming Language - GeeksforGeeks
http://www.geeksforgeeks.org/c-plus-plus
A computer science portal for geeks. Branch & Bound. Geek of the Month. Geek on the Top. 8216;this’ Pointer. Standard Template Library (STL). Write a C program that won’t compile in C. Name Mangling and extern C in C. How does void * differ in C and C? Write a program that produces different results in C and C. Type difference of character literals in C and C. Can references refer to invalid location in C? When do we pass arguments by reference or pointer? Function Overloading in C. Default Arguments in C.
geeksforgeeks.org
C Programming Language - GeeksforGeeks
http://www.geeksforgeeks.org/c
A computer science portal for geeks. Branch & Bound. Geek of the Month. Geek on the Top. Variable Declaration, Definition and Scope. Enum, Struct and Union. C Language GATE Questions. C Programming Language Standard. Is it fine to write void main() or main() in C/C? Difference between int main() and int main(void) in C/C? Macros and Preprocessors in C. Variable Declaration, Definition and Scope. Variables and Keywords in C. How are variables scoped in C Static or Dynamic? Scope rules in C. Data Types in C.
geeksforgeeks.org
Scope rules in C - GeeksforGeeks
http://www.geeksforgeeks.org/scope-rules-in-c
A computer science portal for geeks. Branch & Bound. Geek of the Month. Geek on the Top. Scope rules in C. Scope of an identifier is the part of the program where the identifier may directly be accessible. In C, all identifiers are lexically (or statically) scoped. C scope rules can be covered under following two categories. Can be accessed anywhere in a program. Filename: file1.c int a; int main(void) { a = 2; }. To restrict access to current file only, global variables can be marked as static. No, a va...
geeksforgeeks.org
Algorithms - GeeksforGeeks
http://www.geeksforgeeks.org/fundamentals-of-algorithms
A computer science portal for geeks. Branch & Bound. Geek of the Month. Geek on the Top. Worst, Average and Best Cases. What does ‘Space Complexity’ mean? Polynomial Time Approximation Scheme. A Time Complexity Question. Time Complexity of building a heap. Time Complexity where loop variable is incremented by 1, 2, 3, 4 . Time Complexity of Loop with Powers. Performance of loops (A caching question). Recent Articles on Analysis of Algorithms. Quiz on Analysis of Algorithms. Stability in sorting algorithms.
SOCIAL ENGAGEMENT