This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.interview.coding.crack; | |
public class FindingIfSubstring { | |
public boolean isSubstring(char a[], char b[]) | |
{ | |
int joint = 0; | |
int indexer = 0; | |
boolean flag = false; | |
if(a.length != b.length) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.interview.coding.crack; | |
public class RotateMatrixByOneEightyDegree { | |
public void rotateByOneEightyDegree(int[][] array, int m, int n) | |
{ | |
for(int i = 0; i < ((m/2) + (m%2)); i++) | |
{ | |
int first = i; | |
int last = n - 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* hacky plugin to allow removal of the jquery tools tooltip objects. | |
* | |
* Doesn't pay any attention to the special event configuration, and will blindly unbind all | |
* mouse[enter|leave] listeners from the trigger element. | |
*/ | |
(function($){ | |
var tooltip = $.fn.tooltip, | |
slice = Array.prototype.slice; |